pub struct Metadata {
pub sender: String,
pub recipients: Vec<String>,
pub checksum: String,
pub timestamp: DateTime<Utc>,
pub version: String,
pub checksum_algorithm: ChecksumAlgorithm,
pub compression_algorithm: CompressionAlgorithm,
pub transfer_id: Option<u32>,
pub purpose: Option<Purpose>,
pub extra: BTreeMap<String, String>,
}Expand description
Package Metadata struct
Fields§
§sender: StringFingerprint of the data package sender.
recipients: Vec<String>Data package recipients fingerprints.
checksum: StringChecksum of the encrypted data file.
timestamp: DateTime<Utc>Creation time of the data package.
(De)serialized using the RFC 3339 format.
version: StringMetadata version.
checksum_algorithm: ChecksumAlgorithmAlgorithm used to compute the checksum of the encrypted data file.
compression_algorithm: CompressionAlgorithmAlgorithm used to compress input data files.
transfer_id: Option<u32>Data transfer ID (DTR).
purpose: Option<Purpose>Data package purpose.
extra: BTreeMap<String, String>Extra metadata key-value fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.