pub struct UpdateFileMeta<T> {
pub mime: Option<String>,
pub extra: Option<HashMap<String, Value>>,
pub content: Option<T>,
}Available on crate feature
utils only.Expand description
Builder for updating a file metadata’s fields.
Fields left as None are not modified.
Fields§
§mime: Option<String>§extra: Option<HashMap<String, Value>>§content: Option<T>Implementations§
Source§impl<T> UpdateFileMeta<T>
impl<T> UpdateFileMeta<T>
Source§impl UpdateFileMeta<()>
impl UpdateFileMeta<()>
Sourcepub fn new() -> UpdateFileMeta<()>
pub fn new() -> UpdateFileMeta<()>
Convert this update to a version without content, for use in the update method.
Trait Implementations§
Source§impl<T: Clone> Clone for UpdateFileMeta<T>
impl<T: Clone> Clone for UpdateFileMeta<T>
Source§fn clone(&self) -> UpdateFileMeta<T>
fn clone(&self) -> UpdateFileMeta<T>
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<T: Debug> Debug for UpdateFileMeta<T>
impl<T: Debug> Debug for UpdateFileMeta<T>
Auto Trait Implementations§
impl<T> Freeze for UpdateFileMeta<T>where
T: Freeze,
impl<T> RefUnwindSafe for UpdateFileMeta<T>where
T: RefUnwindSafe,
impl<T> Send for UpdateFileMeta<T>where
T: Send,
impl<T> Sync for UpdateFileMeta<T>where
T: Sync,
impl<T> Unpin for UpdateFileMeta<T>where
T: Unpin,
impl<T> UnsafeUnpin for UpdateFileMeta<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UpdateFileMeta<T>where
T: UnwindSafe,
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