pub struct UploadBlobSessionParams<'a> {
pub account_id: &'a Id,
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: &Id::from("A13824"),
content_type: "application/pdf",
data: bytes::Bytes::from(buffer),
}).await?;Fields§
§account_id: &'a IdAccount 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>
Auto 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