pub struct UploadSessionResponse {
pub session_id: String,
pub upload_id: Option<String>,
pub chunk_size: u64,
pub expires: u64,
pub upload_urls: Option<Vec<String>>,
pub credential: Option<String>,
pub complete_url: Option<String>,
pub storage_policy: StoragePolicy,
pub mime_type: Option<String>,
pub upload_policy: Option<String>,
}Expand description
Upload session response
Fields§
§session_id: String§upload_id: Option<String>§chunk_size: u64§expires: u64§upload_urls: Option<Vec<String>>§credential: Option<String>§complete_url: Option<String>§storage_policy: StoragePolicy§mime_type: Option<String>§upload_policy: Option<String>Implementations§
Source§impl UploadSessionResponse
impl UploadSessionResponse
Sourcepub fn total_chunks(&self, file_size: u64) -> u32
pub fn total_chunks(&self, file_size: u64) -> u32
Calculate total number of chunks based on file size and chunk size
Trait Implementations§
Source§impl Debug for UploadSessionResponse
impl Debug for UploadSessionResponse
Source§impl<'de> Deserialize<'de> for UploadSessionResponse
impl<'de> Deserialize<'de> for UploadSessionResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UploadSessionResponse
impl RefUnwindSafe for UploadSessionResponse
impl Send for UploadSessionResponse
impl Sync for UploadSessionResponse
impl Unpin for UploadSessionResponse
impl UnwindSafe for UploadSessionResponse
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