Enum kmip_protocol::types::request::RequestPayload [−][src]
#[non_exhaustive]
pub enum RequestPayload {
Show 17 variants
Create(ObjectType, TemplateAttribute),
CreateKeyPair(Option<CommonTemplateAttribute>, Option<PrivateKeyTemplateAttribute>, Option<PublicKeyTemplateAttribute>),
Register(ObjectType, TemplateAttribute, Option<ManagedObject>),
Locate(Vec<Attribute>),
Get(Option<UniqueIdentifier>, Option<KeyFormatType>, Option<KeyCompressionType>, Option<KeyWrappingSpecification>),
GetAttributes(Option<UniqueIdentifier>, Option<Vec<AttributeName>>),
GetAttributeList(Option<UniqueIdentifier>),
AddAttribute(Option<UniqueIdentifier>, Attribute),
ModifyAttribute(Option<UniqueIdentifier>, Attribute),
DeleteAttribute(Option<UniqueIdentifier>, AttributeName, Option<AttributeIndex>),
Activate(Option<UniqueIdentifier>),
Revoke(Option<UniqueIdentifier>, RevocationReason, Option<CompromiseOccurrenceDate>),
Destroy(Option<UniqueIdentifier>),
Query(Vec<QueryFunction>),
DiscoverVersions(Vec<ProtocolVersion>),
Sign(Option<UniqueIdentifier>, Option<CryptographicParameters>, Data),
RNGRetrieve(DataLength),
}
Expand description
See KMIP 1.0 section 7.1 Message Structure.
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.
Create(ObjectType, TemplateAttribute)
Tuple Fields of Create
CreateKeyPair(Option<CommonTemplateAttribute>, Option<PrivateKeyTemplateAttribute>, Option<PublicKeyTemplateAttribute>)
Tuple Fields of CreateKeyPair
Register(ObjectType, TemplateAttribute, Option<ManagedObject>)
Tuple Fields of Register
Get(Option<UniqueIdentifier>, Option<KeyFormatType>, Option<KeyCompressionType>, Option<KeyWrappingSpecification>)
Tuple Fields of Get
GetAttributes(Option<UniqueIdentifier>, Option<Vec<AttributeName>>)
Tuple Fields of GetAttributes
0: Option<UniqueIdentifier>
1: Option<Vec<AttributeName>>
GetAttributeList(Option<UniqueIdentifier>)
Tuple Fields of GetAttributeList
AddAttribute(Option<UniqueIdentifier>, Attribute)
Tuple Fields of AddAttribute
0: Option<UniqueIdentifier>
1: Attribute
ModifyAttribute(Option<UniqueIdentifier>, Attribute)
Tuple Fields of ModifyAttribute
0: Option<UniqueIdentifier>
1: Attribute
DeleteAttribute(Option<UniqueIdentifier>, AttributeName, Option<AttributeIndex>)
Tuple Fields of DeleteAttribute
Activate(Option<UniqueIdentifier>)
Tuple Fields of Activate
Tuple Fields of Revoke
Destroy(Option<UniqueIdentifier>)
Tuple Fields of Destroy
Query(Vec<QueryFunction>)
Tuple Fields of Query
0: Vec<QueryFunction>
DiscoverVersions(Vec<ProtocolVersion>)
Tuple Fields of DiscoverVersions
0: Vec<ProtocolVersion>
Sign(Option<UniqueIdentifier>, Option<CryptographicParameters>, Data)
Tuple Fields of Sign
RNGRetrieve(DataLength)
Tuple Fields of RNGRetrieve
0: DataLength
Implementations
Trait Implementations
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 RequestPayload
impl Send for RequestPayload
impl Sync for RequestPayload
impl Unpin for RequestPayload
impl UnwindSafe for RequestPayload
Blanket Implementations
Mutably borrows from an owned value. Read more