Struct nethsm_sdk_rs::models::private_key::PrivateKey
source · pub struct PrivateKey {
pub mechanisms: Vec<KeyMechanism>,
pub type: KeyType,
pub private: Box<KeyPrivateData>,
pub restrictions: Option<Box<KeyRestrictions>>,
}Fields§
§mechanisms: Vec<KeyMechanism>§type: KeyType§private: Box<KeyPrivateData>§restrictions: Option<Box<KeyRestrictions>>Implementations§
source§impl PrivateKey
impl PrivateKey
pub fn new( mechanisms: Vec<KeyMechanism>, type: KeyType, private: KeyPrivateData ) -> PrivateKey
Trait Implementations§
source§impl Clone for PrivateKey
impl Clone for PrivateKey
source§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
Returns a copy 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 PrivateKey
impl Debug for PrivateKey
source§impl Default for PrivateKey
impl Default for PrivateKey
source§fn default() -> PrivateKey
fn default() -> PrivateKey
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PrivateKey
impl<'de> Deserialize<'de> for PrivateKey
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 PrivateKey
impl PartialEq for PrivateKey
source§fn eq(&self, other: &PrivateKey) -> bool
fn eq(&self, other: &PrivateKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PrivateKey
impl Serialize for PrivateKey
impl StructuralPartialEq for PrivateKey
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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