pub struct EnvelopeContext<'a> {
pub album_pin: &'a str,
pub device_added_at: &'a str,
pub server_clock: &'a str,
pub drift_days: i64,
pub stored_chain_head: Option<Hash32>,
pub stored_amk_version: Option<u32>,
}Expand description
Context a key-less server holds when validating a non-upload lifecycle manifest.
Fields§
§album_pin: &'a strThe album’s immutable protocol pin.
device_added_at: &'a strThe device’s added_at from the published directory.
server_clock: &'a strThe server’s trusted clock (RFC3339).
drift_days: i64Allowed timestamp drift in days.
stored_chain_head: Option<Hash32>The last accepted provenance head for this asset.
stored_amk_version: Option<u32>The last accepted amk_version for this album.
Auto Trait Implementations§
impl<'a> Freeze for EnvelopeContext<'a>
impl<'a> RefUnwindSafe for EnvelopeContext<'a>
impl<'a> Send for EnvelopeContext<'a>
impl<'a> Sync for EnvelopeContext<'a>
impl<'a> Unpin for EnvelopeContext<'a>
impl<'a> UnsafeUnpin for EnvelopeContext<'a>
impl<'a> UnwindSafe for EnvelopeContext<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more