pub struct PutOpts {
pub content_type: String,
pub cache_control: String,
pub metadata: Vec<(String, String)>,
}Expand description
Options for StorageClientPlugin::put.
All fields default to empty / sensible, so callers can pass
PutOpts::default() for the common case of “upload these bytes”.
Fields§
§content_type: StringContent-Type header the backend should serve the object with.
Empty string means “let the backend decide” (usually
application/octet-stream).
cache_control: StringCache-Control header the backend should serve the object with. Empty string means “let the backend decide”.
metadata: Vec<(String, String)>Opaque user metadata keys / values persisted alongside the object. Backends may constrain key charset (S3: ASCII-only, no colons) — callers are responsible for staying inside their backend’s rules.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PutOpts
impl RefUnwindSafe for PutOpts
impl Send for PutOpts
impl Sync for PutOpts
impl Unpin for PutOpts
impl UnsafeUnpin for PutOpts
impl UnwindSafe for PutOpts
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