pub struct CreateUpdateMangaRatingBuilder {
manga_id: Option<Uuid>,
rating: Option<u8>,
/* private fields */
}
Expand description
Builder for CreateUpdateMangaRating
.
Fields§
§manga_id: Option<Uuid>
§rating: Option<u8>
[ 1 .. 10 ]
.
Numbers below 1
will be set at 1
and numbers above 10
will be set at 10
.
Implementations§
Source§impl CreateUpdateMangaRatingBuilder
impl CreateUpdateMangaRatingBuilder
pub fn manga_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn rating<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn rating<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
[ 1 .. 10 ]
.
Numbers below 1
will be set at 1
and numbers above 10
will be set at 10
.
Sourcepub fn build(&self) -> Result<CreateUpdateMangaRating, BuilderError>
pub fn build(&self) -> Result<CreateUpdateMangaRating, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Trait Implementations§
Source§impl Clone for CreateUpdateMangaRatingBuilder
impl Clone for CreateUpdateMangaRatingBuilder
Source§fn clone(&self) -> CreateUpdateMangaRatingBuilder
fn clone(&self) -> CreateUpdateMangaRatingBuilder
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 CreateUpdateMangaRatingBuilder
impl !RefUnwindSafe for CreateUpdateMangaRatingBuilder
impl !Send for CreateUpdateMangaRatingBuilder
impl !Sync for CreateUpdateMangaRatingBuilder
impl Unpin for CreateUpdateMangaRatingBuilder
impl !UnwindSafe for CreateUpdateMangaRatingBuilder
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