pub struct FfiUploadRequest {
pub size: u64,
pub hash: String,
pub content_type: String,
pub crypto_suite_id: u16,
pub protocol_version: String,
pub blob_role: FfiBlobRole,
pub manifest_envelope: FfiManifestEnvelope,
pub album_id: Option<String>,
pub owner_id: Option<String>,
pub intent_id: Option<String>,
}Expand description
FFI mirror of CreateUploadRequest — the POST /upload body.
Fields§
§size: u64Ciphertext size in bytes.
hash: StringCiphertext content hash, lowercase hex.
content_type: StringMIME type (closed enum per protocol version).
crypto_suite_id: u16Crypto suite the blob is sealed under.
protocol_version: StringProtocol date (YYYY-MM-DD) this client speaks.
blob_role: FfiBlobRoleThis blob’s role in its bundle.
manifest_envelope: FfiManifestEnvelopeThe unencrypted manifest fields the server validates.
album_id: Option<String>Optional album to add the asset to.
owner_id: Option<String>Optional owner id (defaults to the authenticated uploader).
intent_id: Option<String>Album-upgrade intent id (album upgrade ceremony only).
Trait Implementations§
Source§impl<UT> ConvertError<UT> for FfiUploadRequest
impl<UT> ConvertError<UT> for FfiUploadRequest
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl<UT> FfiConverter<UT> for FfiUploadRequest
impl<UT> FfiConverter<UT> for FfiUploadRequest
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 From<CreateUploadRequest> for FfiUploadRequest
The reverse mapping, so FfiWorkspace::upload_blobs can hand back exactly what
FfiSession::upload takes. It reuses capsule_sdk::push’s envelope projection wholesale
— the invariant-15 per-blob ciphertext_hash rule has one implementation, in push, and
this is a shape conversion over its output.
impl From<CreateUploadRequest> for FfiUploadRequest
The reverse mapping, so FfiWorkspace::upload_blobs can hand back exactly what
FfiSession::upload takes. It reuses capsule_sdk::push’s envelope projection wholesale
— the invariant-15 per-blob ciphertext_hash rule has one implementation, in push, and
this is a shape conversion over its output.
Source§fn from(req: CreateUploadRequest) -> Self
fn from(req: CreateUploadRequest) -> Self
Source§impl From<FfiUploadRequest> for CreateUploadRequest
impl From<FfiUploadRequest> for CreateUploadRequest
Source§fn from(req: FfiUploadRequest) -> Self
fn from(req: FfiUploadRequest) -> Self
Source§impl<UT> Lift<UT> for FfiUploadRequest
impl<UT> Lift<UT> for FfiUploadRequest
Source§impl<UT> LiftRef<UT> for FfiUploadRequest
impl<UT> LiftRef<UT> for FfiUploadRequest
type LiftType = FfiUploadRequest
Source§impl<UT> LiftReturn<UT> for FfiUploadRequest
impl<UT> LiftReturn<UT> for FfiUploadRequest
Source§type ReturnType = <FfiUploadRequest as Lift<UT>>::FfiType
type ReturnType = <FfiUploadRequest 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 FfiUploadRequest
impl<UT> Lower<UT> for FfiUploadRequest
Source§impl<UT> LowerError<UT> for FfiUploadRequest
impl<UT> LowerError<UT> for FfiUploadRequest
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiUploadRequest
impl<UT> LowerReturn<UT> for FfiUploadRequest
Source§type ReturnType = <FfiUploadRequest as Lower<UT>>::FfiType
type ReturnType = <FfiUploadRequest 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 FfiUploadRequest
impl<UT> TypeId<UT> for FfiUploadRequest
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiUploadRequest
impl RefUnwindSafe for FfiUploadRequest
impl Send for FfiUploadRequest
impl Sync for FfiUploadRequest
impl Unpin for FfiUploadRequest
impl UnsafeUnpin for FfiUploadRequest
impl UnwindSafe for FfiUploadRequest
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