Struct cms::timestamped_data::TimeStampedData
source · pub struct TimeStampedData<'a> {
pub version: TsdVersion,
pub data_uri: Option<Ia5String>,
pub meta_data: Option<MetaData>,
pub content: Option<OctetStringRef<'a>>,
pub temporal_evidence: Evidence,
}
Expand description
The TimeStampedData
type is defined in RFC 5544 Section 2.
TimeStampedData ::= SEQUENCE {
version INTEGER { v1(1) },
dataUri IA5String OPTIONAL,
metaData MetaData OPTIONAL,
content OCTET STRING OPTIONAL,
temporalEvidence Evidence
}
Fields§
§version: TsdVersion
§data_uri: Option<Ia5String>
§meta_data: Option<MetaData>
§content: Option<OctetStringRef<'a>>
§temporal_evidence: Evidence
Trait Implementations§
source§impl<'a> Clone for TimeStampedData<'a>
impl<'a> Clone for TimeStampedData<'a>
source§fn clone(&self) -> TimeStampedData<'a>
fn clone(&self) -> TimeStampedData<'a>
Returns a copy 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<'a> Debug for TimeStampedData<'a>
impl<'a> Debug for TimeStampedData<'a>
source§impl<'a> DecodeValue<'a> for TimeStampedData<'a>
impl<'a> DecodeValue<'a> for TimeStampedData<'a>
source§impl<'a> EncodeValue for TimeStampedData<'a>
impl<'a> EncodeValue for TimeStampedData<'a>
source§impl<'a> PartialEq for TimeStampedData<'a>
impl<'a> PartialEq for TimeStampedData<'a>
source§fn eq(&self, other: &TimeStampedData<'a>) -> bool
fn eq(&self, other: &TimeStampedData<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for TimeStampedData<'a>
impl<'a> Sequence<'a> for TimeStampedData<'a>
impl<'a> StructuralEq for TimeStampedData<'a>
impl<'a> StructuralPartialEq for TimeStampedData<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TimeStampedData<'a>
impl<'a> Send for TimeStampedData<'a>
impl<'a> Sync for TimeStampedData<'a>
impl<'a> Unpin for TimeStampedData<'a>
impl<'a> UnwindSafe for TimeStampedData<'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
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.