pub struct UploadBlobSessionParams<'a> {
pub account_id: &'a str,
pub content_type: &'a str,
pub data: Bytes,
}Expand description
Parameters for JmapClient::upload_blob_session (bd:JMAP-6r7c.64).
Slimmed variant of UploadBlobParams that omits the URL template
— the Session-taking variant supplies it from session.upload_url.
Construct with a struct literal:
ⓘ
client.upload_blob_session(&session, UploadBlobSessionParams {
account_id: "A13824",
content_type: "application/pdf",
data: bytes::Bytes::from(buffer),
}).await?;Fields§
§account_id: &'a strAccount ID that will own the uploaded blob.
content_type: &'a strMedia type sent as the HTTP Content-Type request header.
data: BytesRaw bytes to upload.
Trait Implementations§
Source§impl<'a> Clone for UploadBlobSessionParams<'a>
impl<'a> Clone for UploadBlobSessionParams<'a>
Source§fn clone(&self) -> UploadBlobSessionParams<'a>
fn clone(&self) -> UploadBlobSessionParams<'a>
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<'a> !Freeze for UploadBlobSessionParams<'a>
impl<'a> RefUnwindSafe for UploadBlobSessionParams<'a>
impl<'a> Send for UploadBlobSessionParams<'a>
impl<'a> Sync for UploadBlobSessionParams<'a>
impl<'a> Unpin for UploadBlobSessionParams<'a>
impl<'a> UnsafeUnpin for UploadBlobSessionParams<'a>
impl<'a> UnwindSafe for UploadBlobSessionParams<'a>
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