Struct pkcs8::Attributes [−][src]
pub struct Attributes<'a>(_);
Expand description
Attributes as defined in RFC 5958 Section 2.
attributes is OPTIONAL. It contains information corresponding to the public key (e.g., certificates). The attributes field uses the class
ATTRIBUTE
which is restricted by theOneAsymmetricKeyAttributes
information object set.OneAsymmetricKeyAttributes
is an open ended set in this document. Others documents can constrain these values. Attributes from RFC2985 MAY be supported.
Attributes have the following ASN.1 schema:
Attributes ::= SET OF Attribute { { OneAsymmetricKeyAttributes } }
Trait Implementations
Compute the length of this value in bytes when encoded as ASN.1 DER.
Encode this value as ASN.1 DER using the provided Encoder
.
Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
Encode this message as ASN.1 DER, appending it to the provided byte vector. 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 !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Attributes<'a>
impl<'a> Send for Attributes<'a>
impl<'a> Sync for Attributes<'a>
impl<'a> Unpin for Attributes<'a>
impl<'a> UnwindSafe for Attributes<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more