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.
ObjectType(ObjectType)
Tuple Fields of ObjectType
0: ObjectType
CryptographicAlgorithm(CryptographicAlgorithm)
Tuple Fields of 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>)
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>
State(State)
Tuple Fields of State
0: State
ObjectGroup(String)
Tuple Fields of ObjectGroup
0: String
Link(LinkType, LinkedObjectIdentifier)
Tuple Fields of Link
ApplicationSpecificInformation(ApplicationNamespace, ApplicationData)
Tuple Fields of ApplicationSpecificInformation
ContactInformation(String)
Tuple Fields of ContactInformation
0: String
Structure(Vec<AttributeValue>)
Tuple Fields of Structure
0: Vec<AttributeValue>
Integer(i32)
Tuple Fields of Integer
0: i32
LongInteger(i64)
Tuple Fields of LongInteger
0: i64
Enumeration(u32)
Tuple Fields of Enumeration
0: u32
Boolean(bool)
Tuple Fields of Boolean
0: bool
TextString(String)
Tuple Fields of TextString
0: String
DateTime(u64)
Tuple Fields of DateTime
0: u64
Trait 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