pub struct IdentityFile {
pub version: u8,
pub ed25519_secret_hex: String,
pub x25519_secret_hex: String,
}Fields§
§version: u8§ed25519_secret_hex: String§x25519_secret_hex: StringImplementations§
Source§impl IdentityFile
impl IdentityFile
pub fn from_private(id: &PrivateIdentity) -> Self
pub fn into_private(self) -> Result<PrivateIdentity>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IdentityFile
impl<'de> Deserialize<'de> for IdentityFile
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 IdentityFile
impl RefUnwindSafe for IdentityFile
impl Send for IdentityFile
impl Sync for IdentityFile
impl Unpin for IdentityFile
impl UnsafeUnpin for IdentityFile
impl UnwindSafe for IdentityFile
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