RequestBuilder

Struct RequestBuilder 

Source
pub struct RequestBuilder<TypedBuilderFields> { /* private fields */ }
Expand description

Builder for Request instances.

See Request::builder() for more info.

Implementations§

Source

pub fn name( self, name: Option<String>, ) -> RequestBuilder<((Option<Option<String>>,), __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn description( self, description: Option<String>, ) -> RequestBuilder<(__name, (Option<Option<String>>,), __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn lang( self, lang: Option<String>, ) -> RequestBuilder<(__name, __description, (Option<Option<String>>,), __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn location( self, location: Option<String>, ) -> RequestBuilder<(__name, __description, __lang, (Option<Option<String>>,), __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn birthday( self, birthday: Option<String>, ) -> RequestBuilder<(__name, __description, __lang, __location, (Option<Option<String>>,), __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn avatar_id( self, avatar_id: Option<Id<DriveFile>>, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, (Option<Option<Id<DriveFile>>>,), __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn banner_id( self, banner_id: Option<Id<DriveFile>>, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, (Option<Option<Id<DriveFile>>>,), __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn fields( self, fields: [UserFieldRequest; 4], ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, (Option<[UserFieldRequest; 4]>,), __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn is_locked( self, is_locked: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, (Option<bool>,), __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn is_explorable( self, is_explorable: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, (Option<bool>,), __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn careful_bot( self, careful_bot: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, (Option<bool>,), __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn auto_accept_followed( self, auto_accept_followed: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, (Option<bool>,), __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn is_bot( self, is_bot: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, (Option<bool>,), __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn is_cat( self, is_cat: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, (Option<bool>,), __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn auto_watch( self, auto_watch: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, (Option<bool>,), __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source§

impl<__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, (), __always_mark_nsfw, __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn always_mark_nsfw( self, always_mark_nsfw: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, (Option<bool>,), __pinned_page_id, __muted_words, __no_crawle)>

Source

pub fn pinned_page_id( self, pinned_page_id: Option<Id<Page>>, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, (Option<Option<Id<Page>>>,), __muted_words, __no_crawle)>

Source

pub fn muted_words( self, muted_words: Query<String>, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, (Option<Query<String>>,), __no_crawle)>

Source

pub fn no_crawle( self, no_crawle: bool, ) -> RequestBuilder<(__name, __description, __lang, __location, __birthday, __avatar_id, __banner_id, __fields, __is_locked, __is_explorable, __careful_bot, __auto_accept_followed, __is_bot, __is_cat, __auto_watch, __inject_featured_note, __always_mark_nsfw, __pinned_page_id, __muted_words, (Option<bool>,))>

Source

pub fn build(self) -> Request

Finalise the builder and create its Request instance

Auto Trait Implementations§

§

impl<TypedBuilderFields> Freeze for RequestBuilder<TypedBuilderFields>
where TypedBuilderFields: Freeze,

§

impl<TypedBuilderFields> RefUnwindSafe for RequestBuilder<TypedBuilderFields>
where TypedBuilderFields: RefUnwindSafe,

§

impl<TypedBuilderFields> Send for RequestBuilder<TypedBuilderFields>
where TypedBuilderFields: Send,

§

impl<TypedBuilderFields> Sync for RequestBuilder<TypedBuilderFields>
where TypedBuilderFields: Sync,

§

impl<TypedBuilderFields> Unpin for RequestBuilder<TypedBuilderFields>
where TypedBuilderFields: Unpin,

§

impl<TypedBuilderFields> UnwindSafe for RequestBuilder<TypedBuilderFields>
where TypedBuilderFields: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,