pub struct TimeStampedData<'a> {
pub version: TsdVersion,
pub data_uri: Option<Ia5String>,
pub meta_data: Option<MetaData>,
pub content: Option<&'a OctetStringRef>,
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<&'a OctetStringRef>§temporal_evidence: EvidenceTrait 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 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<'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>
impl<'a> Eq for TimeStampedData<'a>
impl<'a> Sequence<'a> for TimeStampedData<'a>
impl<'a> StructuralPartialEq for TimeStampedData<'a>
Auto Trait Implementations§
impl<'a> Freeze for TimeStampedData<'a>
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<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.
Source§fn from_ber(bytes: &'a [u8]) -> Result<Self, Self::Error>
fn from_ber(bytes: &'a [u8]) -> Result<Self, Self::Error>
Available on crate feature
ber only.Parse
Self from the provided BER-encoded byte slice. Read moreSource§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.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this TLV object 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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message.
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit