pub struct Request {Show 14 fields
pub visibility: Option<Visibility>,
pub visible_user_ids: Option<Vec<Id<User>>>,
pub text: Option<String>,
pub cw: Option<String>,
pub via_mobile: Option<bool>,
pub local_only: Option<bool>,
pub no_extract_mentions: Option<bool>,
pub no_extract_hashtags: Option<bool>,
pub no_extract_emojis: Option<bool>,
pub file_ids: Option<Vec<Id<DriveFile>>>,
pub reply_id: Option<Id<Note>>,
pub renote_id: Option<Id<Note>>,
pub poll: Option<PollRequest>,
pub channel_id: Option<Id<Channel>>,
}Fields§
§visibility: Option<Visibility>§visible_user_ids: Option<Vec<Id<User>>>§text: Option<String>§cw: Option<String>§via_mobile: Option<bool>§local_only: Option<bool>§no_extract_mentions: Option<bool>§no_extract_emojis: Option<bool>§file_ids: Option<Vec<Id<DriveFile>>>§reply_id: Option<Id<Note>>§renote_id: Option<Id<Note>>§poll: Option<PollRequest>§channel_id: Option<Id<Channel>>Available on crate feature
12-47-0 only.Implementations§
Source§impl Request
impl Request
Sourcepub fn builder() -> RequestBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> RequestBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Request.
On the builder, call .visibility(...)(optional), .visible_user_ids(...)(optional), .text(...)(optional), .cw(...)(optional), .via_mobile(...)(optional), .local_only(...)(optional), .no_extract_mentions(...)(optional), .no_extract_hashtags(...)(optional), .no_extract_emojis(...)(optional), .file_ids(...)(optional), .reply_id(...)(optional), .renote_id(...)(optional), .poll(...)(optional), .channel_id(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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