pub struct CreateUploadRequest {
pub size: CreateUploadRequestSize,
pub hash: CreateUploadRequestHash,
pub content_type: CreateUploadRequestContentType,
pub crypto_suite_id: CreateUploadRequestCryptoSuiteId,
pub protocol_version: CreateUploadRequestProtocolVersion,
pub blob_role: WireBlobRole,
pub manifest_envelope: ManifestEnvelope,
pub album_id: Nullable<CreateUploadRequestAlbumId>,
pub owner_id: Nullable<CreateUploadRequestOwnerId>,
pub intent_id: Nullable<CreateUploadRequestIntentId>,
}Expand description
The body of POST /v1/upload.
Strict (deny_unknown_fields): an unknown field is a client bug and is refused rather than
ignored. Plaintext metadata — a filename, a capture date, dimensions — is deliberately
absent: it rides the encrypted metadata blob and never the wire request.
Fields§
§size: CreateUploadRequestSize§hash: CreateUploadRequestHash§content_type: CreateUploadRequestContentType§crypto_suite_id: CreateUploadRequestCryptoSuiteId§protocol_version: CreateUploadRequestProtocolVersion§blob_role: WireBlobRole§manifest_envelope: ManifestEnvelope§album_id: Nullable<CreateUploadRequestAlbumId>§owner_id: Nullable<CreateUploadRequestOwnerId>§intent_id: Nullable<CreateUploadRequestIntentId>Implementations§
Source§impl CreateUploadRequest
impl CreateUploadRequest
Sourcepub fn with_album_id(
self,
value: impl Into<Nullable<CreateUploadRequestAlbumId>>,
) -> Self
pub fn with_album_id( self, value: impl Into<Nullable<CreateUploadRequestAlbumId>>, ) -> Self
Set the album_id member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_album_id_null(self) -> Self
pub fn with_album_id_null(self) -> Self
Set the album_id member to an explicit null.
Sourcepub fn with_owner_id(
self,
value: impl Into<Nullable<CreateUploadRequestOwnerId>>,
) -> Self
pub fn with_owner_id( self, value: impl Into<Nullable<CreateUploadRequestOwnerId>>, ) -> Self
Set the owner_id member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_owner_id_null(self) -> Self
pub fn with_owner_id_null(self) -> Self
Set the owner_id member to an explicit null.
Sourcepub fn with_intent_id(
self,
value: impl Into<Nullable<CreateUploadRequestIntentId>>,
) -> Self
pub fn with_intent_id( self, value: impl Into<Nullable<CreateUploadRequestIntentId>>, ) -> Self
Set the intent_id member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_intent_id_null(self) -> Self
pub fn with_intent_id_null(self) -> Self
Set the intent_id member to an explicit null.
Trait Implementations§
Source§impl Clone for CreateUploadRequest
impl Clone for CreateUploadRequest
Source§fn clone(&self) -> CreateUploadRequest
fn clone(&self) -> CreateUploadRequest
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 CreateUploadRequest
impl Debug for CreateUploadRequest
Source§impl<'de> Deserialize<'de> for CreateUploadRequest
impl<'de> Deserialize<'de> for CreateUploadRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<CreateUploadRequestRequired> for CreateUploadRequest
impl From<CreateUploadRequestRequired> for CreateUploadRequest
Source§fn from(required: CreateUploadRequestRequired) -> Self
fn from(required: CreateUploadRequestRequired) -> Self
A CreateUploadRequest holding the members CreateUploadRequestRequired holds, and every optional member unset, a member with a schema default included.
Source§impl PartialEq for CreateUploadRequest
impl PartialEq for CreateUploadRequest
Source§fn eq(&self, other: &CreateUploadRequest) -> bool
fn eq(&self, other: &CreateUploadRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateUploadRequest
impl Serialize for CreateUploadRequest
impl StructuralPartialEq for CreateUploadRequest
Auto Trait Implementations§
impl Freeze for CreateUploadRequest
impl RefUnwindSafe for CreateUploadRequest
impl Send for CreateUploadRequest
impl Sync for CreateUploadRequest
impl Unpin for CreateUploadRequest
impl UnsafeUnpin for CreateUploadRequest
impl UnwindSafe for CreateUploadRequest
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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