pub struct Role<'a> {
pub role_authority: Option<GeneralNames<'a>>,
pub role_name: GeneralName<'a>,
}
Expand description
The role attribute, specified in X.509-2000, carries information about role allocations of the AC holder.
The syntax used for this attribute is as described in RFC 3281 Section 4.4.5:
RoleSyntax ::= SEQUENCE {
roleAuthority [0] GeneralNames OPTIONAL,
roleName [1] GeneralName
}
Fields§
§role_name: GeneralName<'a>
Trait Implementations§
source§impl BERDecodable for Role<'_>
impl BERDecodable for Role<'_>
source§fn decode_ber(reader: BERReader<'_, '_>) -> ASN1Result<Self>
fn decode_ber(reader: BERReader<'_, '_>) -> ASN1Result<Self>
source§impl<'a> PartialEq for Role<'a>
impl<'a> PartialEq for Role<'a>
impl<'a> Eq for Role<'a>
impl<'a> StructuralEq for Role<'a>
impl<'a> StructuralPartialEq for Role<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Role<'a>
impl<'a> Send for Role<'a>
impl<'a> Sync for Role<'a>
impl<'a> Unpin for Role<'a>
impl<'a> UnwindSafe for Role<'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