pub struct Attribute(pub AttributeName, pub Option<AttributeIndex>, pub AttributeValue);
Expand description
See KMIP 1.0 section 2.1.1 Attribute.
Tuple Fields§
§0: AttributeName
§1: Option<AttributeIndex>
§2: AttributeValue
Implementations§
Source§impl Attribute
Helper functions to simplifying including KMIP TemplateAttributes in requests.
impl Attribute
Helper functions to simplifying including KMIP TemplateAttributes in requests.
The set of possible attributes and their textual names are specified by the KMIP 1.0 spec in Section 3 Attributes. We offer various Attribute constructor functions that avoid the need for the caller to couple the right AttributeName and AttributeValue pairs together and to use the correct AttributeName text value and instead just Do The Right Thing for them.
Sourcepub fn UniqueIdentifier(value: String) -> Self
pub fn UniqueIdentifier(value: String) -> Self
See KMIP 1.0 section 3.1 Unique Identifier.
Sourcepub fn ObjectType(value: ObjectType) -> Self
pub fn ObjectType(value: ObjectType) -> Self
See KMIP 1.0 section 3.3 Object Type.
Sourcepub fn CryptographicAlgorithm(value: CryptographicAlgorithm) -> Self
pub fn CryptographicAlgorithm(value: CryptographicAlgorithm) -> Self
See KMIP 1.0 section 3.4 Cryptographic Algorithm.
Sourcepub fn CryptographicLength(value: i32) -> Self
pub fn CryptographicLength(value: i32) -> Self
See KMIP 1.0 section 3.5 Cryptographic Length.
Sourcepub fn CryptographicParameters(
cryptographic_parameters: CryptographicParameters,
) -> Self
pub fn CryptographicParameters( cryptographic_parameters: CryptographicParameters, ) -> Self
See KMIP 1.0 section 3.6 Cryptographic Parameters.
Sourcepub fn OperationPolicyName(value: String) -> Self
pub fn OperationPolicyName(value: String) -> Self
See KMIP 1.0 section 3.13 Operation Policy Name.
Sourcepub fn CryptographicUsageMask(value: CryptographicUsageMask) -> Self
pub fn CryptographicUsageMask(value: CryptographicUsageMask) -> Self
See KMIP 1.0 section 3.14 Cryptographic Usage Mask.
Sourcepub fn ActivationDate(value: u64) -> Self
pub fn ActivationDate(value: u64) -> Self
See KMIP 1.0 section 3.24 Activation Date.
Sourcepub fn ObjectGroup(value: String) -> Self
pub fn ObjectGroup(value: String) -> Self
See KMIP 1.0 section 3.28 Object Group.
Sourcepub fn Link(
link_type: LinkType,
linked_object_identifier: LinkedObjectIdentifier,
) -> Self
pub fn Link( link_type: LinkType, linked_object_identifier: LinkedObjectIdentifier, ) -> Self
See KMIP 1.0 section 3.29 Link.
Sourcepub fn ApplicationSpecificInformation(
application_namespace: ApplicationNamespace,
application_data: ApplicationData,
) -> Self
pub fn ApplicationSpecificInformation( application_namespace: ApplicationNamespace, application_data: ApplicationData, ) -> Self
See KMIP 1.0 section 3.30 Application Specific Information.
Sourcepub fn ContactInformation(value: String) -> Self
pub fn ContactInformation(value: String) -> Self
See KMIP 1.0 section 3.31 Contact Information.