pub struct TbsRequest {
pub version: Version,
pub requestor_name: Option<GeneralName>,
pub request_list: Vec<Request>,
pub request_extensions: Option<Extensions>,
}
Expand description
TBSRequest structure as defined in RFC 6960 Section 4.1.1.
TBSRequest ::= SEQUENCE {
version [0] EXPLICIT Version DEFAULT v1,
requestorName [1] EXPLICIT GeneralName OPTIONAL,
requestList SEQUENCE OF Request,
requestExtensions [2] EXPLICIT Extensions OPTIONAL }
Fields§
§version: Version
§requestor_name: Option<GeneralName>
§request_list: Vec<Request>
§request_extensions: Option<Extensions>
Implementations§
Trait Implementations§
Source§impl Clone for TbsRequest
impl Clone for TbsRequest
Source§fn clone(&self) -> TbsRequest
fn clone(&self) -> TbsRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TbsRequest
impl Debug for TbsRequest
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for TbsRequest
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for TbsRequest
Source§impl Default for TbsRequest
impl Default for TbsRequest
Source§fn default() -> TbsRequest
fn default() -> TbsRequest
Returns the “default value” for a type. Read more
Source§impl<'__der_lifetime> EncodeValue for TbsRequest
impl<'__der_lifetime> EncodeValue for TbsRequest
Source§impl PartialEq for TbsRequest
impl PartialEq for TbsRequest
impl Eq for TbsRequest
impl<'__der_lifetime> Sequence<'__der_lifetime> for TbsRequest
impl StructuralPartialEq for TbsRequest
Auto Trait Implementations§
impl Freeze for TbsRequest
impl RefUnwindSafe for TbsRequest
impl Send for TbsRequest
impl Sync for TbsRequest
impl Unpin for TbsRequest
impl UnwindSafe for TbsRequest
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,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
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 value to the provided byte slice, returning a sub-slice
containing the encoded message.