pub struct AttributeTypeAndValue {
pub oid: AttributeType,
pub value: AttributeValue,
}Expand description
X.501 AttributeTypeAndValue as defined in RFC 5280 Appendix A.1.
AttributeTypeAndValue ::= SEQUENCE {
type AttributeType,
value AttributeValue
}Fields§
§oid: AttributeType§value: AttributeValueImplementations§
Trait Implementations§
Source§impl Clone for AttributeTypeAndValue
impl Clone for AttributeTypeAndValue
Source§impl Debug for AttributeTypeAndValue
impl Debug for AttributeTypeAndValue
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for AttributeTypeAndValue
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for AttributeTypeAndValue
Source§impl Display for AttributeTypeAndValue
Serializes the structure according to the rules in RFC 4514.
impl Display for AttributeTypeAndValue
Serializes the structure according to the rules in RFC 4514.
Source§impl EncodeValue for AttributeTypeAndValue
impl EncodeValue for AttributeTypeAndValue
impl Eq for AttributeTypeAndValue
Source§impl FromStr for AttributeTypeAndValue
Parse an AttributeTypeAndValue string.
impl FromStr for AttributeTypeAndValue
Parse an AttributeTypeAndValue string.
This function follows the rules in RFC 4514.
Source§impl Hash for AttributeTypeAndValue
impl Hash for AttributeTypeAndValue
Source§impl Ord for AttributeTypeAndValue
impl Ord for AttributeTypeAndValue
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AttributeTypeAndValue
impl PartialEq for AttributeTypeAndValue
Source§impl PartialOrd for AttributeTypeAndValue
impl PartialOrd for AttributeTypeAndValue
impl<'__der_lifetime> Sequence<'__der_lifetime> for AttributeTypeAndValue
impl StructuralPartialEq for AttributeTypeAndValue
Auto Trait Implementations§
impl Freeze for AttributeTypeAndValue
impl RefUnwindSafe for AttributeTypeAndValue
impl Send for AttributeTypeAndValue
impl Sync for AttributeTypeAndValue
impl Unpin for AttributeTypeAndValue
impl UnsafeUnpin for AttributeTypeAndValue
impl UnwindSafe for AttributeTypeAndValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit