Enum kmip_protocol::types::common::AttributeValue [−][src]
#[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.
Tuple Fields of ObjectType
0: ObjectTypeTuple Fields of CryptographicAlgorithm
Tuple Fields of CryptographicParameters
0: Option<BlockCipherMode>1: Option<PaddingMethod>2: Option<HashingAlgorithm>3: Option<KeyRoleType>4: Option<DigitalSignatureAlgorithm>5: Option<CryptographicAlgorithm>6: Option<RandomIV>7: Option<IVLength>8: Option<TagLength>9: Option<FixedFieldLength>10: Option<InvocationFieldLength>11: Option<CounterLength>12: Option<InitialCounterValue>Tuple Fields of State
0: StateTuple Fields of ObjectGroup
0: StringTuple Fields of Link
Tuple Fields of ApplicationSpecificInformation
Tuple Fields of ContactInformation
0: StringTuple Fields of Structure
0: Vec<AttributeValue>Tuple Fields of Integer
0: i32Tuple Fields of LongInteger
0: i64Tuple Fields of Enumeration
0: u32Tuple Fields of Boolean
0: boolTuple Fields of TextString
0: StringTuple Fields of DateTime
0: u64Trait Implementations
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
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
Blanket Implementations
Mutably borrows from an owned value. Read more