pub struct FfiUploadBlob {
pub tier: String,
pub hash: String,
pub request: FfiUploadRequest,
pub bytes: Vec<u8>,
}Expand description
One transferable blob of a sealed asset, paired with the POST /upload body that declares
it. Hand request and bytes straight to
FfiSession::upload — this record exists so an app never
has to assemble a manifest envelope itself.
The blobs come back in ladder order: the metadata blob (T0 — the index tier that makes the asset visible), then derivatives (T1), then the original (T2).
bytes holds each blob whole, the original included, so an original costs
its full size in memory here. FfiSession::push_asset
pushes the same blobs with the original streamed, and is the path for an original of any
size.
Fields§
§tier: StringThe ladder tier this blob occupies (index / preview / original).
hash: StringThe blob’s content address (lowercase hex) — the value the server dedups on.
request: FfiUploadRequestThe POST /upload body for this blob, with the manifest envelope already projected.
bytes: Vec<u8>The bytes to transfer.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for FfiUploadBlob
impl<UT> ConvertError<UT> for FfiUploadBlob
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl<UT> FfiConverter<UT> for FfiUploadBlob
impl<UT> FfiConverter<UT> for FfiUploadBlob
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for FfiUploadBlob
impl<UT> Lift<UT> for FfiUploadBlob
Source§impl<UT> LiftRef<UT> for FfiUploadBlob
impl<UT> LiftRef<UT> for FfiUploadBlob
type LiftType = FfiUploadBlob
Source§impl<UT> LiftReturn<UT> for FfiUploadBlob
impl<UT> LiftReturn<UT> for FfiUploadBlob
Source§type ReturnType = <FfiUploadBlob as Lift<UT>>::FfiType
type ReturnType = <FfiUploadBlob as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for FfiUploadBlob
impl<UT> Lower<UT> for FfiUploadBlob
Source§impl<UT> LowerError<UT> for FfiUploadBlob
impl<UT> LowerError<UT> for FfiUploadBlob
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiUploadBlob
impl<UT> LowerReturn<UT> for FfiUploadBlob
Source§type ReturnType = <FfiUploadBlob as Lower<UT>>::FfiType
type ReturnType = <FfiUploadBlob as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl<UT> TypeId<UT> for FfiUploadBlob
impl<UT> TypeId<UT> for FfiUploadBlob
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiUploadBlob
impl RefUnwindSafe for FfiUploadBlob
impl Send for FfiUploadBlob
impl Sync for FfiUploadBlob
impl Unpin for FfiUploadBlob
impl UnsafeUnpin for FfiUploadBlob
impl UnwindSafe for FfiUploadBlob
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§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