pub struct UpdateCustomListBuilder {
list_id: Option<Uuid>,
name: Option<Option<String>>,
visibility: Option<Option<CustomListVisibility>>,
manga: Option<Vec<Uuid>>,
version: Option<u32>,
/* private fields */
}
Expand description
Builder for UpdateCustomList
.
Fields§
§list_id: Option<Uuid>
§name: Option<Option<String>>
§visibility: Option<Option<CustomListVisibility>>
§manga: Option<Vec<Uuid>>
§version: Option<u32>
Implementations§
Source§impl UpdateCustomListBuilder
impl UpdateCustomListBuilder
pub fn list_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn visibility<VALUE: Into<CustomListVisibility>>( &mut self, value: VALUE, ) -> &mut Self
pub fn manga<VALUE: Into<Vec<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn add_manga_id<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn version<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<UpdateCustomList, BuilderError>
pub fn build(&self) -> Result<UpdateCustomList, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl UpdateCustomListBuilder
impl UpdateCustomListBuilder
pub async fn send(&self) -> CustomListResponse
Trait Implementations§
Source§impl Clone for UpdateCustomListBuilder
impl Clone for UpdateCustomListBuilder
Source§fn clone(&self) -> UpdateCustomListBuilder
fn clone(&self) -> UpdateCustomListBuilder
Returns a copy 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 UpdateCustomListBuilder
impl !RefUnwindSafe for UpdateCustomListBuilder
impl !Send for UpdateCustomListBuilder
impl !Sync for UpdateCustomListBuilder
impl Unpin for UpdateCustomListBuilder
impl !UnwindSafe for UpdateCustomListBuilder
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