pub struct KeptVersion {
pub version: VersionId,
pub uuid: Uuid,
pub form: String,
pub gzip: bool,
pub size: i64,
pub stored_at: i64,
pub live: bool,
pub wrapped: Vec<u8>,
/* private fields */
}Expand description
A kept version as the export lists it.
Fields§
§version: VersionId§uuid: Uuid§form: StringThe form’s name as stored: unsigned, signed or encrypted.
gzip: bool§size: i64The body’s size in bytes, as received.
stored_at: i64Nanoseconds since the epoch.
live: boolWhether it is its uuid’s current version and the uuid is not deleted: what a read returns.
wrapped: Vec<u8>The data key, wrapped under the tenant key.
Trait Implementations§
Source§impl Clone for KeptVersion
impl Clone for KeptVersion
Source§impl Debug for KeptVersion
impl Debug for KeptVersion
impl Eq for KeptVersion
Source§impl PartialEq for KeptVersion
impl PartialEq for KeptVersion
impl StructuralPartialEq for KeptVersion
Auto Trait Implementations§
impl Forget for KeptVersion
impl Freeze for KeptVersion
impl RefUnwindSafe for KeptVersion
impl Send for KeptVersion
impl Sync for KeptVersion
impl Unpin for KeptVersion
impl UnsafeUnpin for KeptVersion
impl UnwindSafe for KeptVersion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.