pub struct HeldRelease {
pub asset_id: Uuid,
pub blobs: Vec<ReceiptExpectations>,
}Expand description
One asset whose local bytes wait on server custody before they may be released, asked
about through ReleaseCoordinator::resolve_custody.
Fields§
§asset_id: UuidThe asset.
blobs: Vec<ReceiptExpectations>One entry per required blob: what the client sent, matched against the receipt log.
Their ciphertext_hashes, in order, are the blobs declared to /storage/verify.
Implementations§
Source§impl HeldRelease
impl HeldRelease
Sourcepub fn for_original(bundle: &UploadBundle) -> Self
pub fn for_original(bundle: &UploadBundle) -> Self
The blobs a release of bundle’s original waits on: the original ciphertext and, when
the head binds one, the sealed metadata blob — in the order
Workspace::release_move_source
declares them.
Sourcepub fn for_head(asset: &AssetState) -> Self
pub fn for_head(asset: &AssetState) -> Self
The blobs a release of asset’s original waits on, read off its provenance chain
head: the original ciphertext and, when the head binds one, the sealed metadata blob
the library holds — exactly the set, in the order,
Workspace::release_move_source
declares. Unlike for_original it needs no upload bundle, which
carries the create and cannot be built once an edit has replaced the create’s metadata
blob.
Trait Implementations§
Source§impl Clone for HeldRelease
impl Clone for HeldRelease
Source§fn clone(&self) -> HeldRelease
fn clone(&self) -> HeldRelease
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HeldRelease
impl Debug for HeldRelease
impl Eq for HeldRelease
Source§impl PartialEq for HeldRelease
impl PartialEq for HeldRelease
Source§fn eq(&self, other: &HeldRelease) -> bool
fn eq(&self, other: &HeldRelease) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeldRelease
Auto Trait Implementations§
impl Freeze for HeldRelease
impl RefUnwindSafe for HeldRelease
impl Send for HeldRelease
impl Sync for HeldRelease
impl Unpin for HeldRelease
impl UnsafeUnpin for HeldRelease
impl UnwindSafe for HeldRelease
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
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§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>
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>
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