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
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>