pub struct AssetBlobs {
pub thumbnail: Option<RepBlob>,
pub preview: Option<RepBlob>,
pub original: Option<RepBlob>,
pub derivative_manifests: Vec<DerivativeManifest>,
}Expand description
An asset’s fetchable representations, resolved from a sync feed entry’s blob manifest, plus the signed derivative manifests that open them. LQIP is not here — it rides the metadata blob.
Fields§
§thumbnail: Option<RepBlob>The thumbnail derivative, when present.
preview: Option<RepBlob>The preview derivative, when present.
original: Option<RepBlob>The original, when present (absent while awaiting-original).
derivative_manifests: Vec<DerivativeManifest>The DerivativeManifests of each derivative role this asset carries, already verified:
verify_derivative_manifests’s VerifiedDerivatives::accepted, which ran each
through core’s verify_derivative chokepoint. The open path checks nothing a signature
covers.
A derivative’s ciphertext is opened with AMK(amk_version).derive_file_key( source_asset_id, nonce_prefix), and those three values live here and nowhere else: the
blob manifest carries only content addresses. A thumbnail or preview with no manifest
describing its blob is not opened (DegradeReason::NoManifest).
A receiver gets them from the sync feed, as the exact signed bytes in
FeedEntry::derivative_manifests; they
are decoded and verified before they are put here.
Implementations§
Source§impl AssetBlobs
impl AssetBlobs
Sourcepub fn blob_for(&self, representation: Representation) -> Option<&RepBlob>
pub fn blob_for(&self, representation: Representation) -> Option<&RepBlob>
The blob backing a representation (None for Representation::Lqip, which
is embedded, and for any representation this asset does not carry).
Trait Implementations§
Source§impl Clone for AssetBlobs
impl Clone for AssetBlobs
Source§fn clone(&self) -> AssetBlobs
fn clone(&self) -> AssetBlobs
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 AssetBlobs
impl Debug for AssetBlobs
Source§impl Default for AssetBlobs
impl Default for AssetBlobs
Source§fn default() -> AssetBlobs
fn default() -> AssetBlobs
impl Eq for AssetBlobs
Source§impl PartialEq for AssetBlobs
impl PartialEq for AssetBlobs
Source§fn eq(&self, other: &AssetBlobs) -> bool
fn eq(&self, other: &AssetBlobs) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssetBlobs
Auto Trait Implementations§
impl Freeze for AssetBlobs
impl RefUnwindSafe for AssetBlobs
impl Send for AssetBlobs
impl Sync for AssetBlobs
impl Unpin for AssetBlobs
impl UnsafeUnpin for AssetBlobs
impl UnwindSafe for AssetBlobs
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