pub struct RequestBuilder<TypedBuilderFields> { /* private fields */ }Expand description
Builder for Request instances.
See Request::builder() for more info.
Implementations§
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)>
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)>
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)>
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)>
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)>
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)>
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)>
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)>
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)>
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>>,))>
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> 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