Struct mangadex_api::v5::scanlation_group::create::CreateGroupBuilder
source · [−]pub struct CreateGroupBuilder<'a> {
name: Option<&'a str>,
website: Option<Option<Option<&'a str>>>,
irc_server: Option<Option<Option<&'a str>>>,
irc_channel: Option<Option<Option<&'a str>>>,
discord: Option<Option<Option<&'a str>>>,
contact_email: Option<Option<Option<&'a str>>>,
description: Option<Option<Option<&'a str>>>,
twitter: Option<Option<Option<&'a Url>>>,
manga_updates: Option<Option<Option<&'a Url>>>,
inactive: Option<Option<bool>>,
publish_delay: Option<Option<Option<MangaDexDuration>>>,
/* private fields */
}
Expand description
Builder for CreateGroup
.
Fields
name: Option<&'a str>
website: Option<Option<Option<&'a str>>>
Nullable.
irc_server: Option<Option<Option<&'a str>>>
Nullable.
irc_channel: Option<Option<Option<&'a str>>>
Nullable.
discord: Option<Option<Option<&'a str>>>
Nullable.
contact_email: Option<Option<Option<&'a str>>>
Nullable.
description: Option<Option<Option<&'a str>>>
Nullable.
twitter: Option<Option<Option<&'a Url>>>
Nullable.
manga_updates: Option<Option<Option<&'a Url>>>
Regex: ^https://www.mangaupdates.com/(?:groups|publishers).html?id=\d+
Nullable.
inactive: Option<Option<bool>>
publish_delay: Option<Option<Option<MangaDexDuration>>>
Nullable.
Implementations
sourceimpl<'a> CreateGroupBuilder<'a>
impl<'a> CreateGroupBuilder<'a>
pub fn name<VALUE: Into<&'a str>>(self, value: VALUE) -> Self
sourcepub fn irc_server<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
pub fn irc_server<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
Nullable.
sourcepub fn irc_channel<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
pub fn irc_channel<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
Nullable.
sourcepub fn contact_email<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
pub fn contact_email<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
Nullable.
sourcepub fn description<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
pub fn description<VALUE: Into<Option<&'a str>>>(self, value: VALUE) -> Self
Nullable.
sourcepub fn manga_updates<VALUE: Into<Option<&'a Url>>>(self, value: VALUE) -> Self
pub fn manga_updates<VALUE: Into<Option<&'a Url>>>(self, value: VALUE) -> Self
Regex: ^https://www.mangaupdates.com/(?:groups|publishers).html?id=\d+
Nullable.
pub fn inactive<VALUE: Into<bool>>(self, value: VALUE) -> Self
sourcepub fn publish_delay<VALUE: Into<Option<MangaDexDuration>>>(
self,
value: VALUE
) -> Self
pub fn publish_delay<VALUE: Into<Option<MangaDexDuration>>>(
self,
value: VALUE
) -> Self
Nullable.
sourcepub fn build(self) -> Result<CreateGroup<'a>, CreateGroupBuilderError>
pub fn build(self) -> Result<CreateGroup<'a>, CreateGroupBuilderError>
sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Trait Implementations
sourceimpl<'a> Clone for CreateGroupBuilder<'a>
impl<'a> Clone for CreateGroupBuilder<'a>
sourcefn clone(&self) -> CreateGroupBuilder<'a>
fn clone(&self) -> CreateGroupBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateGroupBuilder<'a>
impl<'a> Send for CreateGroupBuilder<'a>
impl<'a> Sync for CreateGroupBuilder<'a>
impl<'a> Unpin for CreateGroupBuilder<'a>
impl<'a> !UnwindSafe for CreateGroupBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more