pub struct FileOptions {
pub cache_control: Option<String>,
pub content_type: Option<String>,
pub upsert: Option<bool>,
}Expand description
ファイルアップロードオプション
Fields§
§cache_control: Option<String>§content_type: Option<String>§upsert: Option<bool>Implementations§
Source§impl FileOptions
impl FileOptions
Sourcepub fn with_cache_control(self, cache_control: &str) -> Self
pub fn with_cache_control(self, cache_control: &str) -> Self
キャッシュコントロールを設定
Sourcepub fn with_content_type(self, content_type: &str) -> Self
pub fn with_content_type(self, content_type: &str) -> Self
コンテンツタイプを設定
Sourcepub fn with_upsert(self, upsert: bool) -> Self
pub fn with_upsert(self, upsert: bool) -> Self
アップサートを設定
Trait Implementations§
Source§impl Clone for FileOptions
impl Clone for FileOptions
Source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
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 FileOptions
impl Debug for FileOptions
Source§impl Default for FileOptions
impl Default for FileOptions
Source§fn default() -> FileOptions
fn default() -> FileOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
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