pub struct CreateGroupBuilder {
name: Option<String>,
website: Option<Option<String>>,
irc_server: Option<Option<String>>,
irc_channel: Option<Option<String>>,
discord: Option<Option<String>>,
contact_email: Option<Option<String>>,
description: Option<Option<String>>,
twitter: Option<Option<Url>>,
manga_updates: Option<Option<Url>>,
inactive: Option<Option<bool>>,
publish_delay: Option<Option<MangaDexDuration>>,
/* private fields */
}
Expand description
Builder for CreateGroup
.
Fields§
§name: Option<String>
§website: Option<Option<String>>
Nullable.
irc_server: Option<Option<String>>
Nullable.
irc_channel: Option<Option<String>>
Nullable.
discord: Option<Option<String>>
Nullable.
contact_email: Option<Option<String>>
Nullable.
description: Option<Option<String>>
Nullable.
twitter: Option<Option<Url>>
Nullable.
manga_updates: Option<Option<Url>>
Regex: ^https://www.mangaupdates.com/(?:groups|publishers).html?id=\d+
Nullable.
inactive: Option<Option<bool>>
§publish_delay: Option<Option<MangaDexDuration>>
Nullable.
Implementations§
Source§impl CreateGroupBuilder
impl CreateGroupBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn irc_server<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn irc_server<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Nullable.
Sourcepub fn irc_channel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn irc_channel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Nullable.
Sourcepub fn contact_email<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn contact_email<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Nullable.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Nullable.
Sourcepub fn manga_updates<VALUE: Into<Url>>(&mut self, value: VALUE) -> &mut Self
pub fn manga_updates<VALUE: Into<Url>>(&mut self, value: VALUE) -> &mut Self
Regex: ^https://www.mangaupdates.com/(?:groups|publishers).html?id=\d+
Nullable.
pub fn inactive<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn publish_delay<VALUE: Into<MangaDexDuration>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn publish_delay<VALUE: Into<MangaDexDuration>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn build(&self) -> Result<CreateGroup, BuilderError>
pub fn build(&self) -> Result<CreateGroup, 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 CreateGroupBuilder
impl Clone for CreateGroupBuilder
Source§fn clone(&self) -> CreateGroupBuilder
fn clone(&self) -> CreateGroupBuilder
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 CreateGroupBuilder
impl !RefUnwindSafe for CreateGroupBuilder
impl !Send for CreateGroupBuilder
impl !Sync for CreateGroupBuilder
impl Unpin for CreateGroupBuilder
impl !UnwindSafe for CreateGroupBuilder
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