pub struct CreateCustomListBuilder<'a> {
name: Option<&'a str>,
visibility: Option<Option<CustomListVisibility>>,
manga: Option<Vec<Uuid>>,
version: Option<Option<u32>>,
/* private fields */
}Expand description
Builder for CreateCustomList.
Fields§
§name: Option<&'a str>§visibility: Option<Option<CustomListVisibility>>§manga: Option<Vec<Uuid>>§version: Option<Option<u32>>Implementations§
Source§impl<'a> CreateCustomListBuilder<'a>
impl<'a> CreateCustomListBuilder<'a>
pub fn name<VALUE: Into<&'a str>>(self, value: VALUE) -> Self
pub fn visibility<VALUE: Into<CustomListVisibility>>(self, value: VALUE) -> Self
pub fn manga<VALUE: Into<Vec<Uuid>>>(self, value: VALUE) -> Self
pub fn add_manga_id<VALUE>(self, item: VALUE) -> Self
pub fn version<VALUE: Into<u32>>(self, value: VALUE) -> Self
Sourcepub fn build(self) -> Result<CreateCustomList<'a>, CreateCustomListBuilderError>
pub fn build(self) -> Result<CreateCustomList<'a>, CreateCustomListBuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None or PhantomData.
Trait Implementations§
Source§impl<'a> Clone for CreateCustomListBuilder<'a>
impl<'a> Clone for CreateCustomListBuilder<'a>
Source§fn clone(&self) -> CreateCustomListBuilder<'a>
fn clone(&self) -> CreateCustomListBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'a> !RefUnwindSafe for CreateCustomListBuilder<'a>
impl<'a> !Send for CreateCustomListBuilder<'a>
impl<'a> !Sync for CreateCustomListBuilder<'a>
impl<'a> !UnwindSafe for CreateCustomListBuilder<'a>
impl<'a> Freeze for CreateCustomListBuilder<'a>
impl<'a> Unpin for CreateCustomListBuilder<'a>
impl<'a> UnsafeUnpin for CreateCustomListBuilder<'a>
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