Enum wildland_corex::WildlandIdentity
source · #[repr(C)]pub enum WildlandIdentity {
Forest(u64, SigningKeypair),
Device(String, SigningKeypair),
}
Variants§
Forest(u64, SigningKeypair)
Device(String, SigningKeypair)
Implementations§
source§impl WildlandIdentity
impl WildlandIdentity
pub fn get_identifier(&self) -> String
pub fn get_public_key(&self) -> PubKey
pub fn get_private_key(&self) -> SecKey
pub fn get_keypair_bytes(&self) -> Vec<u8> ⓘ
pub fn get_keypair(&self) -> SigningKeypair
Trait Implementations§
source§impl Debug for WildlandIdentity
impl Debug for WildlandIdentity
source§impl Display for WildlandIdentity
impl Display for WildlandIdentity
source§impl From<ForestIdentity> for WildlandIdentity
impl From<ForestIdentity> for WildlandIdentity
source§fn from(value: ForestIdentity) -> Self
fn from(value: ForestIdentity) -> Self
Converts to this type from the input type.
source§impl PartialEq<WildlandIdentity> for WildlandIdentity
impl PartialEq<WildlandIdentity> for WildlandIdentity
source§fn eq(&self, other: &WildlandIdentity) -> bool
fn eq(&self, other: &WildlandIdentity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WildlandIdentity
Auto Trait Implementations§
impl RefUnwindSafe for WildlandIdentity
impl Send for WildlandIdentity
impl Sync for WildlandIdentity
impl Unpin for WildlandIdentity
impl UnwindSafe for WildlandIdentity
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