pub struct UpdateCollection {
pub name: Option<String>,
pub source: Option<Option<String>>,
pub thumb: Option<CollectionThumb>,
}Available on crate feature
utils only.Expand description
Builder for updating a collection’s fields.
Fields left as None are not modified.
Fields§
§name: Option<String>§source: Option<Option<String>>§thumb: Option<CollectionThumb>Implementations§
Source§impl UpdateCollection
impl UpdateCollection
Sourcepub fn thumb(self, thumb: Option<FileMetaId>) -> Self
pub fn thumb(self, thumb: Option<FileMetaId>) -> Self
Set or clear the thumbnail.
Sourcepub fn thumb_by_latest(self) -> Self
pub fn thumb_by_latest(self) -> Self
Set the thumbnail to the latest post’s thumb in this collection.
Trait Implementations§
Source§impl Clone for UpdateCollection
impl Clone for UpdateCollection
Source§fn clone(&self) -> UpdateCollection
fn clone(&self) -> UpdateCollection
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 UpdateCollection
impl Debug for UpdateCollection
Source§impl Default for UpdateCollection
impl Default for UpdateCollection
Source§fn default() -> UpdateCollection
fn default() -> UpdateCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateCollection
impl RefUnwindSafe for UpdateCollection
impl Send for UpdateCollection
impl Sync for UpdateCollection
impl Unpin for UpdateCollection
impl UnsafeUnpin for UpdateCollection
impl UnwindSafe for UpdateCollection
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