pub struct Encoding {
pub content: (String, String),
pub ty: Vec<String>,
pub version: String,
}
Expand description
Encoding format for the keypair.
Fields§
§content: (String, String)
The content of the keystore.
- The first element is the standard.
- The second element is the key algorithm.
ty: Vec<String>
The type of the keystore.
- The first element is the key deriven function of the keystore.
- if the first element is
none
, there will be no cipher following.
- if the first element is
- The second element is the encryption cipher of the keystore.
version: String
The version of the keystore.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Encoding
impl<'de> Deserialize<'de> for Encoding
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
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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