pub struct CreateMangaRelationBuilder {
manga_id: Option<Uuid>,
target_manga: Option<Uuid>,
relation: Option<MangaRelation>,
/* private fields */
}
Expand description
Builder for CreateMangaRelation
.
Fields§
§manga_id: Option<Uuid>
§target_manga: Option<Uuid>
§relation: Option<MangaRelation>
Implementations§
Source§impl CreateMangaRelationBuilder
impl CreateMangaRelationBuilder
pub fn manga_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn target_manga<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn relation<VALUE: Into<MangaRelation>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateMangaRelation, BuilderError>
pub fn build(&self) -> Result<CreateMangaRelation, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl CreateMangaRelationBuilder
impl CreateMangaRelationBuilder
pub async fn send(&self) -> MangaRelationListResponse
Trait Implementations§
Source§impl Clone for CreateMangaRelationBuilder
impl Clone for CreateMangaRelationBuilder
Source§fn clone(&self) -> CreateMangaRelationBuilder
fn clone(&self) -> CreateMangaRelationBuilder
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 CreateMangaRelationBuilder
impl !RefUnwindSafe for CreateMangaRelationBuilder
impl !Send for CreateMangaRelationBuilder
impl !Sync for CreateMangaRelationBuilder
impl Unpin for CreateMangaRelationBuilder
impl !UnwindSafe for CreateMangaRelationBuilder
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