Struct mangadex_api::v5::scanlation_group::update::UpdateGroupBuilder
source · [−]pub struct UpdateGroupBuilder<'a> {Show 16 fields
group_id: Option<&'a Uuid>,
name: Option<Option<&'a str>>,
leader: Option<Option<&'a Uuid>>,
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>>>,
focused_languages: Option<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<&'a Uuid>
name: Option<Option<&'a str>>
leader: Option<Option<&'a Uuid>>
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.
focused_languages: Option<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
sourceimpl<'a> UpdateGroupBuilder<'a>
impl<'a> UpdateGroupBuilder<'a>
pub fn group_id<VALUE: Into<&'a Uuid>>(self, value: VALUE) -> Self
pub fn name<VALUE: Into<&'a str>>(self, value: VALUE) -> Self
pub fn leader<VALUE: Into<&'a Uuid>>(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.
sourcepub fn focused_languages<VALUE: Into<Option<Vec<Language>>>>(
self,
value: VALUE
) -> Self
pub fn focused_languages<VALUE: Into<Option<Vec<Language>>>>(
self,
value: VALUE
) -> Self
Languages the scanlation primarily translates or uploads works into.
Nullable.
pub fn inactive<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn locked<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn publish_delay<VALUE: Into<MangaDexDuration>>(self, value: VALUE) -> Self
sourcepub fn build(self) -> Result<UpdateGroup<'a>, UpdateGroupBuilderError>
pub fn build(self) -> Result<UpdateGroup<'a>, UpdateGroupBuilderError>
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 UpdateGroupBuilder<'a>
impl<'a> Clone for UpdateGroupBuilder<'a>
sourcefn clone(&self) -> UpdateGroupBuilder<'a>
fn clone(&self) -> UpdateGroupBuilder<'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 UpdateGroupBuilder<'a>
impl<'a> Send for UpdateGroupBuilder<'a>
impl<'a> Sync for UpdateGroupBuilder<'a>
impl<'a> Unpin for UpdateGroupBuilder<'a>
impl<'a> !UnwindSafe for UpdateGroupBuilder<'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