pub struct SecurityKey {
pub registered_keys: Vec<RegisteredKey>,
pub live: bool,
pub label: String,
pub color: u8,
pub icon: String,
pub archived: bool,
pub date: u64,
}Fields§
§registered_keys: Vec<RegisteredKey>§live: bool§label: String§color: u8§icon: String§archived: bool§date: u64Implementations§
Source§impl SecurityKey
impl SecurityKey
Sourcepub fn to_view(&self, index: usize) -> SecurityKeyView
pub fn to_view(&self, index: usize) -> SecurityKeyView
Convert to a view suitable for IPC, given the key’s index.
Sourcepub fn set_archived(&mut self, archived: bool)
pub fn set_archived(&mut self, archived: bool)
Set archived state. Archived keys are automatically not live.
Trait Implementations§
Source§impl Clone for SecurityKey
impl Clone for SecurityKey
Source§fn clone(&self) -> SecurityKey
fn clone(&self) -> SecurityKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityKey
impl Debug for SecurityKey
Source§impl Default for SecurityKey
impl Default for SecurityKey
Source§fn default() -> SecurityKey
fn default() -> SecurityKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecurityKey
impl<'de> Deserialize<'de> for SecurityKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SecurityKey
impl RefUnwindSafe for SecurityKey
impl Send for SecurityKey
impl Sync for SecurityKey
impl Unpin for SecurityKey
impl UnwindSafe for SecurityKey
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.