pub struct UpdateAuthorBuilder {Show 17 fields
author_id: Option<Uuid>,
name: Option<Option<String>>,
biography: Option<Option<LocalizedString>>,
twitter: Option<Option<Option<Url>>>,
pixiv: Option<Option<Option<Url>>>,
melon_book: Option<Option<Option<Url>>>,
fan_box: Option<Option<Option<Url>>>,
booth: Option<Option<Option<Url>>>,
nico_video: Option<Option<Option<Url>>>,
skeb: Option<Option<Option<Url>>>,
fantia: Option<Option<Option<Url>>>,
tumblr: Option<Option<Option<Url>>>,
youtube: Option<Option<Option<Url>>>,
weibo: Option<Option<Option<Url>>>,
naver: Option<Option<Option<Url>>>,
website: Option<Option<Option<Url>>>,
version: Option<u32>,
/* private fields */
}
Expand description
Builder for UpdateAuthor
.
Fields§
§name: Option<Option<String>>
§biography: Option<Option<LocalizedString>>
§twitter: Option<Option<Option<Url>>>
Nullable.
pixiv: Option<Option<Option<Url>>>
Nullable.
melon_book: Option<Option<Option<Url>>>
Nullable.
fan_box: Option<Option<Option<Url>>>
Nullable.
booth: Option<Option<Option<Url>>>
Nullable.
nico_video: Option<Option<Option<Url>>>
Nullable.
skeb: Option<Option<Option<Url>>>
Nullable.
fantia: Option<Option<Option<Url>>>
Nullable.
tumblr: Option<Option<Option<Url>>>
Nullable.
youtube: Option<Option<Option<Url>>>
Nullable.
weibo: Option<Option<Option<Url>>>
https://weibo.cn/u/ or https://m.weibo.cn/u/
Nullable.
Nullable.
website: Option<Option<Option<Url>>>
Nullable.
version: Option<u32>
= 1
Implementations§
Source§impl UpdateAuthorBuilder
impl UpdateAuthorBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn biography<VALUE: Into<LocalizedString>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn melon_book<VALUE: Into<Option<Url>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn melon_book<VALUE: Into<Option<Url>>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn nico_video<VALUE: Into<Option<Url>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn nico_video<VALUE: Into<Option<Url>>>( &mut self, value: VALUE, ) -> &mut Self
Nullable.
Sourcepub fn weibo<VALUE: Into<Option<Url>>>(&mut self, value: VALUE) -> &mut Self
pub fn weibo<VALUE: Into<Option<Url>>>(&mut self, value: VALUE) -> &mut Self
https://weibo.cn/u/ or https://m.weibo.cn/u/
Nullable.
Nullable.
Sourcepub fn build(&self) -> Result<UpdateAuthor, BuilderError>
pub fn build(&self) -> Result<UpdateAuthor, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl UpdateAuthorBuilder
impl UpdateAuthorBuilder
pub async fn send(&self) -> Result<Limited<AuthorData>>
Trait Implementations§
Source§impl Clone for UpdateAuthorBuilder
impl Clone for UpdateAuthorBuilder
Source§fn clone(&self) -> UpdateAuthorBuilder
fn clone(&self) -> UpdateAuthorBuilder
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 UpdateAuthorBuilder
impl !RefUnwindSafe for UpdateAuthorBuilder
impl !Send for UpdateAuthorBuilder
impl !Sync for UpdateAuthorBuilder
impl Unpin for UpdateAuthorBuilder
impl !UnwindSafe for UpdateAuthorBuilder
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