pub struct DownloadBlobSessionParams<'a> {
pub account_id: &'a str,
pub blob_id: &'a str,
pub name: &'a str,
pub accept_type: Option<&'a str>,
pub expected_sha256: Option<&'a Sha256>,
}Expand description
Parameters for JmapClient::download_blob_session (bd:JMAP-6r7c.64).
Slimmed variant of DownloadBlobParams that omits the URL
template — the Session-taking variant supplies it from
session.download_url. Construct with a struct literal:
ⓘ
client.download_blob_session(&session, DownloadBlobSessionParams {
account_id: "A13824",
blob_id: "Gbc4c...",
name: "attachment.pdf",
accept_type: Some("application/pdf"),
expected_sha256: None,
}).await?;Fields§
§account_id: &'a strAccount ID that owns the blob.
blob_id: &'a strServer-assigned blob identifier.
name: &'a strHuman-readable filename for the {name} template variable.
accept_type: Option<&'a str>Optional accept type for the {type} template variable.
expected_sha256: Option<&'a Sha256>Optional expected SHA-256 digest for integrity verification.
Trait Implementations§
Source§impl<'a> Clone for DownloadBlobSessionParams<'a>
impl<'a> Clone for DownloadBlobSessionParams<'a>
Source§fn clone(&self) -> DownloadBlobSessionParams<'a>
fn clone(&self) -> DownloadBlobSessionParams<'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 moreimpl<'a> Copy for DownloadBlobSessionParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for DownloadBlobSessionParams<'a>
impl<'a> RefUnwindSafe for DownloadBlobSessionParams<'a>
impl<'a> Send for DownloadBlobSessionParams<'a>
impl<'a> Sync for DownloadBlobSessionParams<'a>
impl<'a> Unpin for DownloadBlobSessionParams<'a>
impl<'a> UnsafeUnpin for DownloadBlobSessionParams<'a>
impl<'a> UnwindSafe for DownloadBlobSessionParams<'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