pub struct CollectionUpdateBuilder { /* private fields */ }Expand description
Builder for CollectionUpdate.
Implementations§
Source§impl CollectionUpdateBuilder
impl CollectionUpdateBuilder
Sourcepub fn description(&mut self, value: Option<String>) -> &mut Self
pub fn description(&mut self, value: Option<String>) -> &mut Self
New description
Sourcepub fn style_sheet(&mut self, value: Option<String>) -> &mut Self
pub fn style_sheet(&mut self, value: Option<String>) -> &mut Self
New style sheet
Sourcepub fn visibility(&mut self, value: Option<CollectionVisibility>) -> &mut Self
pub fn visibility(&mut self, value: Option<CollectionVisibility>) -> &mut Self
New visibility level
Sourcepub fn pass(&mut self, value: Option<String>) -> &mut Self
pub fn pass(&mut self, value: Option<String>) -> &mut Self
New password (only CollectionVisibility::Password)
Sourcepub fn build(&self) -> Result<CollectionUpdate, CollectionUpdateBuilderError>
pub fn build(&self) -> Result<CollectionUpdate, CollectionUpdateBuilderError>
Trait Implementations§
Source§impl Clone for CollectionUpdateBuilder
impl Clone for CollectionUpdateBuilder
Source§fn clone(&self) -> CollectionUpdateBuilder
fn clone(&self) -> CollectionUpdateBuilder
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 moreAuto Trait Implementations§
impl Freeze for CollectionUpdateBuilder
impl RefUnwindSafe for CollectionUpdateBuilder
impl Send for CollectionUpdateBuilder
impl Sync for CollectionUpdateBuilder
impl Unpin for CollectionUpdateBuilder
impl UnwindSafe for CollectionUpdateBuilder
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