#[non_exhaustive]pub enum AttributeValue {
Show 17 variants
Name(NameValue, NameType),
ObjectType(ObjectType),
CryptographicAlgorithm(CryptographicAlgorithm),
CryptographicParameters(Option<BlockCipherMode>, Option<PaddingMethod>, Option<HashingAlgorithm>, Option<KeyRoleType>, Option<DigitalSignatureAlgorithm>, Option<CryptographicAlgorithm>, Option<RandomIV>, Option<IVLength>, Option<TagLength>, Option<FixedFieldLength>, Option<InvocationFieldLength>, Option<CounterLength>, Option<InitialCounterValue>),
State(State),
ObjectGroup(String),
Link(LinkType, LinkedObjectIdentifier),
ApplicationSpecificInformation(ApplicationNamespace, ApplicationData),
ContactInformation(String),
Structure(Vec<AttributeValue>),
Integer(i32),
LongInteger(i64),
Enumeration(u32),
Boolean(bool),
TextString(String),
ByteString(Vec<u8>),
DateTime(u64),
}
Expand description
See KMIP 1.0 section 2.1.1 Attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Name(NameValue, NameType)
ObjectType(ObjectType)
CryptographicAlgorithm(CryptographicAlgorithm)
CryptographicParameters(Option<BlockCipherMode>, Option<PaddingMethod>, Option<HashingAlgorithm>, Option<KeyRoleType>, Option<DigitalSignatureAlgorithm>, Option<CryptographicAlgorithm>, Option<RandomIV>, Option<IVLength>, Option<TagLength>, Option<FixedFieldLength>, Option<InvocationFieldLength>, Option<CounterLength>, Option<InitialCounterValue>)
State(State)
ObjectGroup(String)
Link(LinkType, LinkedObjectIdentifier)
ApplicationSpecificInformation(ApplicationNamespace, ApplicationData)
ContactInformation(String)
Structure(Vec<AttributeValue>)
Integer(i32)
LongInteger(i64)
Enumeration(u32)
Boolean(bool)
TextString(String)
ByteString(Vec<u8>)
DateTime(u64)
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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 AttributeValue
impl Debug for AttributeValue
Source§impl<'de> Deserialize<'de> for AttributeValue
impl<'de> Deserialize<'de> for AttributeValue
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 From<CryptographicParameters> for AttributeValue
impl From<CryptographicParameters> for AttributeValue
Source§fn from(params: CryptographicParameters) -> Self
fn from(params: CryptographicParameters) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
Source§impl Serialize for AttributeValue
impl Serialize for AttributeValue
impl Eq for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
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