pub struct Document<'a> {
pub data: &'a [u8],
pub sha256: &'a Option<RetrievedDigest<Sha256>>,
pub sha512: &'a Option<RetrievedDigest<Sha512>>,
pub signature: &'a Option<String>,
pub changed: SystemTime,
pub metadata: &'a RetrievalMetadata,
pub no_timestamps: bool,
pub no_xattrs: bool,
}
Fields§
§data: &'a [u8]
The data to store
sha256: &'a Option<RetrievedDigest<Sha256>>
An optional SHA256 digest
sha512: &'a Option<RetrievedDigest<Sha512>>
An optional SHA512 digest
signature: &'a Option<String>
An optional signature
changed: SystemTime
Last change date
metadata: &'a RetrievalMetadata
Metadata from the retrieval process
no_timestamps: bool
§no_xattrs: bool
Auto Trait Implementations§
impl<'a> Freeze for Document<'a>
impl<'a> RefUnwindSafe for Document<'a>
impl<'a> Send for Document<'a>
impl<'a> Sync for Document<'a>
impl<'a> Unpin for Document<'a>
impl<'a> UnwindSafe for Document<'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> 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.