pub struct MasterKeyJson {
pub algorithm: String,
pub secret_key: String,
}Expand description
JSON-serializable format for the master key file.
Stored at BITROUTER_HOME/.keys/<pubkey_prefix>/master.json.
Fields§
§algorithm: StringAlgorithm identifier. Always “eddsa” for Ed25519.
secret_key: StringThe 64-byte keypair (seed + public key), base64url-encoded.
Trait Implementations§
Source§impl Clone for MasterKeyJson
impl Clone for MasterKeyJson
Source§fn clone(&self) -> MasterKeyJson
fn clone(&self) -> MasterKeyJson
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 MasterKeyJson
impl Debug for MasterKeyJson
Source§impl<'de> Deserialize<'de> for MasterKeyJson
impl<'de> Deserialize<'de> for MasterKeyJson
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 MasterKeyJson
impl RefUnwindSafe for MasterKeyJson
impl Send for MasterKeyJson
impl Sync for MasterKeyJson
impl Unpin for MasterKeyJson
impl UnsafeUnpin for MasterKeyJson
impl UnwindSafe for MasterKeyJson
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