RequestBuilder

Struct RequestBuilder 

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

Builder for Request instances.

See Request::builder() for more info.

Implementations§

Source§

impl<__visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<((), __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn visibility( self, visibility: Visibility, ) -> RequestBuilder<((Option<Visibility>,), __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, (), __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn visible_user_ids( self, visible_user_ids: Vec<Id<User>>, ) -> RequestBuilder<(__visibility, (Option<Vec<Id<User>>>,), __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, (), __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn text( self, text: impl Into<String>, ) -> RequestBuilder<(__visibility, __visible_user_ids, (Option<String>,), __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, (), __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn cw( self, cw: impl Into<String>, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, (Option<String>,), __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, (), __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn via_mobile( self, via_mobile: bool, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, (Option<bool>,), __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, (), __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn local_only( self, local_only: bool, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, (Option<bool>,), __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, (), __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn no_extract_mentions( self, no_extract_mentions: bool, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, (Option<bool>,), __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, (), __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn no_extract_hashtags( self, no_extract_hashtags: bool, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, (Option<bool>,), __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __file_ids, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, (), __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn no_extract_emojis( self, no_extract_emojis: bool, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, (Option<bool>,), __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __reply_id, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, (), __reply_id, __renote_id, __poll, __channel_id)>

Source

pub fn file_ids( self, file_ids: Vec<Id<DriveFile>>, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, (Option<Vec<Id<DriveFile>>>,), __reply_id, __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __renote_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, (), __renote_id, __poll, __channel_id)>

Source

pub fn reply_id( self, reply_id: Id<Note>, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, (Option<Id<Note>>,), __renote_id, __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __poll, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, (), __poll, __channel_id)>

Source

pub fn renote_id( self, renote_id: Id<Note>, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, (Option<Id<Note>>,), __poll, __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __channel_id> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, (), __channel_id)>

Source

pub fn poll( self, poll: PollRequest, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, (Option<PollRequest>,), __channel_id)>

Source§

impl<__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, ())>

Source

pub fn channel_id( self, channel_id: Id<Channel>, ) -> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, (Option<Id<Channel>>,))>

Source§

impl<__visibility: RequestBuilder_Optional<Option<Visibility>>, __visible_user_ids: RequestBuilder_Optional<Option<Vec<Id<User>>>>, __text: RequestBuilder_Optional<Option<String>>, __cw: RequestBuilder_Optional<Option<String>>, __via_mobile: RequestBuilder_Optional<Option<bool>>, __local_only: RequestBuilder_Optional<Option<bool>>, __no_extract_mentions: RequestBuilder_Optional<Option<bool>>, __no_extract_hashtags: RequestBuilder_Optional<Option<bool>>, __no_extract_emojis: RequestBuilder_Optional<Option<bool>>, __file_ids: RequestBuilder_Optional<Option<Vec<Id<DriveFile>>>>, __reply_id: RequestBuilder_Optional<Option<Id<Note>>>, __renote_id: RequestBuilder_Optional<Option<Id<Note>>>, __poll: RequestBuilder_Optional<Option<PollRequest>>, __channel_id: RequestBuilder_Optional<Option<Id<Channel>>>> RequestBuilder<(__visibility, __visible_user_ids, __text, __cw, __via_mobile, __local_only, __no_extract_mentions, __no_extract_hashtags, __no_extract_emojis, __file_ids, __reply_id, __renote_id, __poll, __channel_id)>

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,