pub struct Attribute<'a> {
pub oid: AttributeType,
pub values: SetOf<AttributeValue<'a>, MAX_ATTR_VALUES>,
}Expand description
X.501 Attribute as defined in RFC 5280 Appendix A.1.
Attribute ::= SEQUENCE {
type AttributeType,
values SET OF AttributeValue -- at least one value is required
}Note that RFC 2986 Section 4 defines a constrained version of this type:
Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE {
type ATTRIBUTE.&id({IOSet}),
values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type})
}The unconstrained version should be preferred.
Fields§
§oid: AttributeType§values: SetOf<AttributeValue<'a>, MAX_ATTR_VALUES>Trait Implementations§
Source§impl<'a> DecodeValue<'a> for Attribute<'a>
impl<'a> DecodeValue<'a> for Attribute<'a>
Source§impl<'a> EncodeValue for Attribute<'a>
impl<'a> EncodeValue for Attribute<'a>
impl<'a> Eq for Attribute<'a>
impl<'a> Sequence<'a> for Attribute<'a>
impl<'a> StructuralPartialEq for Attribute<'a>
Auto Trait Implementations§
impl<'a> Forget for Attribute<'a>
impl<'a> Freeze for Attribute<'a>
impl<'a> Move for Attribute<'a>
impl<'a> RefUnwindSafe for Attribute<'a>
impl<'a> Send for Attribute<'a>
impl<'a> Sync for Attribute<'a>
impl<'a> Unpin for Attribute<'a>
impl<'a> UnsafeUnpin for Attribute<'a>
impl<'a> UnwindSafe for Attribute<'a>
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