pub struct Specification {
pub provider: Provider,
pub algo: AlgorithmSpec,
pub private: Option<PrivateKeyMaterial>,
pub capabilities: Vec<Capability>,
pub auth: String,
}Expand description
Key details specification.
The specification of the contents of the key as well as by which provider it is managed. While this crate defines only the TPM provider other crates could define other provider types.
Fields§
§provider: ProviderProvider to use for the key.
algo: AlgorithmSpecAlgorithm used by the key.
private: Option<PrivateKeyMaterial>Optional: key private bits.
capabilities: Vec<Capability>List of key capabilities.
auth: StringAuthentication value to use the key.
Trait Implementations§
Source§impl Debug for Specification
impl Debug for Specification
Source§impl<'de> Deserialize<'de> for Specification
impl<'de> Deserialize<'de> for Specification
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 Specification
impl RefUnwindSafe for Specification
impl Send for Specification
impl Sync for Specification
impl Unpin for Specification
impl UnwindSafe for Specification
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