pub struct NativeIdentity { /* private fields */ }Implementations§
Source§impl NativeIdentity
impl NativeIdentity
pub fn load_or_generate() -> Result<Self>
pub fn load_or_generate_in(config_dir: impl AsRef<Path>) -> Result<Self>
pub fn generate() -> Result<Self>
pub fn fingerprint(&self) -> &str
Trait Implementations§
Source§impl Clone for NativeIdentity
impl Clone for NativeIdentity
Source§fn clone(&self) -> NativeIdentity
fn clone(&self) -> NativeIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeIdentity
impl Debug for NativeIdentity
Source§impl<'de> Deserialize<'de> for NativeIdentity
impl<'de> Deserialize<'de> for NativeIdentity
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
Source§impl PartialEq for NativeIdentity
impl PartialEq for NativeIdentity
Source§fn eq(&self, other: &NativeIdentity) -> bool
fn eq(&self, other: &NativeIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NativeIdentity
impl Serialize for NativeIdentity
impl Eq for NativeIdentity
impl StructuralPartialEq for NativeIdentity
Auto Trait Implementations§
impl Freeze for NativeIdentity
impl RefUnwindSafe for NativeIdentity
impl Send for NativeIdentity
impl Sync for NativeIdentity
impl Unpin for NativeIdentity
impl UnsafeUnpin for NativeIdentity
impl UnwindSafe for NativeIdentity
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