[][src]Struct misskey_api::endpoint::i::update::Request

pub struct Request {
    pub name: Option<Option<String>>,
    pub description: Option<Option<String>>,
    pub lang: Option<Option<String>>,
    pub location: Option<Option<String>>,
    pub birthday: Option<Option<String>>,
    pub avatar_id: Option<Option<Id<DriveFile>>>,
    pub banner_id: Option<Option<Id<DriveFile>>>,
    pub fields: Option<[UserFieldRequest; 4]>,
    pub is_locked: Option<bool>,
    pub is_explorable: Option<bool>,
    pub careful_bot: Option<bool>,
    pub auto_accept_followed: Option<bool>,
    pub is_bot: Option<bool>,
    pub is_cat: Option<bool>,
    pub auto_watch: Option<bool>,
    pub inject_featured_note: Option<bool>,
    pub always_mark_nsfw: Option<bool>,
    pub pinned_page_id: Option<Option<Id<Page>>>,
    pub muted_words: Option<Query<String>>,
    pub no_crawle: Option<bool>,
}

Fields

name: Option<Option<String>>description: Option<Option<String>>lang: Option<Option<String>>location: Option<Option<String>>birthday: Option<Option<String>>avatar_id: Option<Option<Id<DriveFile>>>banner_id: Option<Option<Id<DriveFile>>>fields: Option<[UserFieldRequest; 4]>is_locked: Option<bool>is_explorable: Option<bool>
This is supported on crate feature 12-63-0 only.
careful_bot: Option<bool>auto_accept_followed: Option<bool>is_bot: Option<bool>is_cat: Option<bool>auto_watch: Option<bool>
This is supported on non-crate feature 12-55-0 only.
inject_featured_note: Option<bool>always_mark_nsfw: Option<bool>pinned_page_id: Option<Option<Id<Page>>>muted_words: Option<Query<String>>no_crawle: Option<bool>
This is supported on crate feature 12-60-0 only.

Implementations

impl Request[src]

pub fn builder(
) -> RequestBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
[src]

Create a builder for building Request. On the builder, call .name(...)(optional), .description(...)(optional), .lang(...)(optional), .location(...)(optional), .birthday(...)(optional), .avatar_id(...)(optional), .banner_id(...)(optional), .fields(...)(optional), .is_locked(...)(optional), .is_explorable(...)(optional), .careful_bot(...)(optional), .auto_accept_followed(...)(optional), .is_bot(...)(optional), .is_cat(...)(optional), .auto_watch(...)(optional), .inject_featured_note(...)(optional), .always_mark_nsfw(...)(optional), .pinned_page_id(...)(optional), .muted_words(...)(optional), .no_crawle(...)(optional) to set the values of the fields (they accept Into values). Finally, call .build() to create the instance of Request.

Trait Implementations

impl Clone for Request[src]

impl Debug for Request[src]

impl Default for Request[src]

impl Request for Request[src]

type Response = User

Response type of this request.

impl Serialize for Request[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.