pub struct CreateAuthorBuilder {Show 16 fields
name: 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<u16>,
/* private fields */
}
Expand description
Builder for CreateAuthor
.
Fields§
§name: 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<u16>
Implementations§
Source§impl CreateAuthorBuilder
impl CreateAuthorBuilder
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.
pub fn version<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateAuthor, BuilderError>
pub fn build(&self) -> Result<CreateAuthor, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl CreateAuthorBuilder
impl CreateAuthorBuilder
pub async fn send(&self) -> Result<Limited<AuthorData>>
Trait Implementations§
Source§impl Clone for CreateAuthorBuilder
impl Clone for CreateAuthorBuilder
Source§fn clone(&self) -> CreateAuthorBuilder
fn clone(&self) -> CreateAuthorBuilder
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 CreateAuthorBuilder
impl !RefUnwindSafe for CreateAuthorBuilder
impl !Send for CreateAuthorBuilder
impl !Sync for CreateAuthorBuilder
impl Unpin for CreateAuthorBuilder
impl !UnwindSafe for CreateAuthorBuilder
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