pub struct DerivativeBlob {
pub role: DerivativeRole,
pub format: String,
pub amk_version: Option<u32>,
pub bytes: Vec<u8>,
pub ciphertext_hash: Hash32,
}Expand description
One derivative blob of an asset bundle: the ciphertext plus the content address its
signed [DerivativeManifest] committed to.
Fields§
§role: DerivativeRoleWhich derivative this is (thumbnail / preview / embedding).
format: StringThe derivative’s MIME/format string, e.g. image/avif.
amk_version: Option<u32>The AMK epoch the derivative manifest was authorized under, when it recorded one.
bytes: Vec<u8>The derivative’s transferable bytes — ciphertext, re-derived from the plaintext the library holds using the nonce prefix the manifest recorded. Derivative bytes are encrypted client-side exactly like the original (Encryption).
ciphertext_hash: Hash32The content address the signed derivative manifest committed to.
Trait Implementations§
Source§impl Clone for DerivativeBlob
impl Clone for DerivativeBlob
Source§fn clone(&self) -> DerivativeBlob
fn clone(&self) -> DerivativeBlob
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DerivativeBlob
impl RefUnwindSafe for DerivativeBlob
impl Send for DerivativeBlob
impl Sync for DerivativeBlob
impl Unpin for DerivativeBlob
impl UnsafeUnpin for DerivativeBlob
impl UnwindSafe for DerivativeBlob
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,
§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