#[non_exhaustive]pub struct RelatedCryptoMaterialProperties {
pub material_type: CryptoMaterialType,
pub id: Option<String>,
pub state: Option<CryptoMaterialState>,
pub size: Option<u32>,
pub algorithm_ref: Option<String>,
pub secured_by: Option<SecuredBy>,
pub format: Option<String>,
pub creation_date: Option<DateTime<Utc>>,
pub activation_date: Option<DateTime<Utc>>,
pub update_date: Option<DateTime<Utc>>,
pub expiration_date: Option<DateTime<Utc>>,
}Expand description
Properties of a cryptographic key or related material asset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.material_type: CryptoMaterialTypeType of key material.
id: Option<String>Unique identifier for the material.
state: Option<CryptoMaterialState>Lifecycle state of the material.
size: Option<u32>Key size in bits.
algorithm_ref: Option<String>Bom-ref of the associated algorithm component.
secured_by: Option<SecuredBy>How this material is protected.
format: Option<String>Key encoding format (e.g., “PEM”, “DER”).
creation_date: Option<DateTime<Utc>>When the material was created.
activation_date: Option<DateTime<Utc>>When the material was activated.
update_date: Option<DateTime<Utc>>When the material was last updated.
expiration_date: Option<DateTime<Utc>>When the material expires.
Implementations§
Source§impl RelatedCryptoMaterialProperties
impl RelatedCryptoMaterialProperties
pub fn new(material_type: CryptoMaterialType) -> Self
pub fn with_id(self, id: String) -> Self
pub fn with_state(self, state: CryptoMaterialState) -> Self
pub fn with_size(self, bits: u32) -> Self
pub fn with_algorithm_ref(self, r: String) -> Self
pub fn with_secured_by(self, secured: SecuredBy) -> Self
pub fn with_format(self, fmt: String) -> Self
pub fn with_creation_date(self, dt: DateTime<Utc>) -> Self
pub fn with_activation_date(self, dt: DateTime<Utc>) -> Self
pub fn with_expiration_date(self, dt: DateTime<Utc>) -> Self
Trait Implementations§
Source§impl Clone for RelatedCryptoMaterialProperties
impl Clone for RelatedCryptoMaterialProperties
Source§fn clone(&self) -> RelatedCryptoMaterialProperties
fn clone(&self) -> RelatedCryptoMaterialProperties
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<'de> Deserialize<'de> for RelatedCryptoMaterialProperties
impl<'de> Deserialize<'de> for RelatedCryptoMaterialProperties
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 RelatedCryptoMaterialProperties
impl PartialEq for RelatedCryptoMaterialProperties
Source§fn eq(&self, other: &RelatedCryptoMaterialProperties) -> bool
fn eq(&self, other: &RelatedCryptoMaterialProperties) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RelatedCryptoMaterialProperties
impl StructuralPartialEq for RelatedCryptoMaterialProperties
Auto Trait Implementations§
impl Freeze for RelatedCryptoMaterialProperties
impl RefUnwindSafe for RelatedCryptoMaterialProperties
impl Send for RelatedCryptoMaterialProperties
impl Sync for RelatedCryptoMaterialProperties
impl Unpin for RelatedCryptoMaterialProperties
impl UnsafeUnpin for RelatedCryptoMaterialProperties
impl UnwindSafe for RelatedCryptoMaterialProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more