pub struct KeyQueryResponseTemplateDeviceOptions { /* private fields */ }Expand description
Options which control the addition of a device to a
KeyQueryResponseTemplate, via KeyQueryResponseTemplate::with_device.
Implementations§
Source§impl KeyQueryResponseTemplateDeviceOptions
impl KeyQueryResponseTemplateDeviceOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a blank new set of options ready for configuration.
All options are initially set to false.
Sourcepub fn verified(self, verified: bool) -> Self
pub fn verified(self, verified: bool) -> Self
Sets the option for whether the device will be verified (i.e., signed by the self-signing key).
Sourcepub fn dehydrated(self, dehydrated: bool) -> Self
pub fn dehydrated(self, dehydrated: bool) -> Self
Sets the option for whether the device will be marked as “dehydrated”, as per MSC3814.
Trait Implementations§
Source§impl Default for KeyQueryResponseTemplateDeviceOptions
impl Default for KeyQueryResponseTemplateDeviceOptions
Source§fn default() -> KeyQueryResponseTemplateDeviceOptions
fn default() -> KeyQueryResponseTemplateDeviceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeyQueryResponseTemplateDeviceOptions
impl RefUnwindSafe for KeyQueryResponseTemplateDeviceOptions
impl Send for KeyQueryResponseTemplateDeviceOptions
impl Sync for KeyQueryResponseTemplateDeviceOptions
impl Unpin for KeyQueryResponseTemplateDeviceOptions
impl UnwindSafe for KeyQueryResponseTemplateDeviceOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more