pub struct B2FileUploadSettings {
pub content_type: String,
pub src_last_modified_millis: Option<u64>,
pub b2_content_disposition: Option<String>,
pub b2_content_language: Option<String>,
pub b2_expires: Option<String>,
pub b2_cache_control: Option<String>,
pub b2_content_encoding: Option<String>,
pub custom_upload_timestamp: Option<u64>,
pub legal_hold: Option<B2FileLegalHold>,
pub file_retention: Option<B2BucketFileRetention>,
pub server_side_encryption: Option<B2ServerSideEncryption>,
}Expand description
File upload settings, check file upload to learn mode
Fields§
§content_type: StringDefault to b2/x-auto
src_last_modified_millis: Option<u64>§b2_content_disposition: Option<String>§b2_content_language: Option<String>§b2_expires: Option<String>§b2_cache_control: Option<String>§b2_content_encoding: Option<String>§custom_upload_timestamp: Option<u64>§legal_hold: Option<B2FileLegalHold>§file_retention: Option<B2BucketFileRetention>§server_side_encryption: Option<B2ServerSideEncryption>Trait Implementations§
Source§impl Clone for B2FileUploadSettings
impl Clone for B2FileUploadSettings
Source§fn clone(&self) -> B2FileUploadSettings
fn clone(&self) -> B2FileUploadSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for B2FileUploadSettings
impl Debug for B2FileUploadSettings
Auto Trait Implementations§
impl Freeze for B2FileUploadSettings
impl RefUnwindSafe for B2FileUploadSettings
impl Send for B2FileUploadSettings
impl Sync for B2FileUploadSettings
impl Unpin for B2FileUploadSettings
impl UnwindSafe for B2FileUploadSettings
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