pub struct UpdateGroupBuilder {Show 16 fields
group_id: Option<Uuid>,
name: Option<Option<Option<String>>>,
leader: Option<Option<Option<Uuid>>>,
website: Option<Option<Option<String>>>,
irc_server: Option<Option<Option<String>>>,
irc_channel: Option<Option<Option<String>>>,
discord: Option<Option<Option<String>>>,
contact_email: Option<Option<Option<String>>>,
description: Option<Option<Option<String>>>,
twitter: Option<Option<Option<Url>>>,
manga_updates: Option<Option<Option<Url>>>,
focused_languages: Option<Option<Vec<Language>>>,
inactive: Option<Option<bool>>,
locked: Option<Option<bool>>,
publish_delay: Option<Option<MangaDexDuration>>,
version: Option<u32>,
/* private fields */
}
Expand description
Builder for UpdateGroup
.
Fields§
§group_id: Option<Uuid>
§name: Option<Option<Option<String>>>
§leader: Option<Option<Option<Uuid>>>
§website: Option<Option<Option<String>>>
Nullable.
irc_server: Option<Option<Option<String>>>
Nullable.
irc_channel: Option<Option<Option<String>>>
Nullable.
discord: Option<Option<Option<String>>>
Nullable.
contact_email: Option<Option<Option<String>>>
Nullable.
description: Option<Option<Option<String>>>
Nullable.
twitter: Option<Option<Option<Url>>>
Nullable.
manga_updates: Option<Option<Option<Url>>>
Regex: ^https://www.mangaupdates.com/(?:groups|publishers).html?id=\d+
Nullable.
focused_languages: Option<Option<Vec<Language>>>
Languages the scanlation primarily translates or uploads works into.
Nullable.
inactive: Option<Option<bool>>
§locked: Option<Option<bool>>
§publish_delay: Option<Option<MangaDexDuration>>
§version: Option<u32>
= 1
Implementations§
Source§impl UpdateGroupBuilder
impl UpdateGroupBuilder
pub fn group_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn leader<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn irc_server<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn irc_server<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn irc_channel<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn irc_channel<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn contact_email<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn contact_email<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn description<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn manga_updates<VALUE: Into<Option<Url>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn manga_updates<VALUE: Into<Option<Url>>>( &mut self, value: VALUE, ) -> &mut Self
Regex: ^https://www.mangaupdates.com/(?:groups|publishers).html?id=\d+
Nullable.
Sourcepub fn focused_languages<VALUE: Into<Vec<Language>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn focused_languages<VALUE: Into<Vec<Language>>>( &mut self, value: VALUE, ) -> &mut Self
Languages the scanlation primarily translates or uploads works into.
Nullable.
pub fn inactive<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn locked<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn publish_delay<VALUE: Into<MangaDexDuration>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<UpdateGroup, BuilderError>
pub fn build(&self) -> Result<UpdateGroup, 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 UpdateGroupBuilder
impl Clone for UpdateGroupBuilder
Source§fn clone(&self) -> UpdateGroupBuilder
fn clone(&self) -> UpdateGroupBuilder
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 UpdateGroupBuilder
impl !RefUnwindSafe for UpdateGroupBuilder
impl !Send for UpdateGroupBuilder
impl !Sync for UpdateGroupBuilder
impl Unpin for UpdateGroupBuilder
impl !UnwindSafe for UpdateGroupBuilder
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