Struct mammut::status_builder::StatusBuilder
[−]
[src]
pub struct StatusBuilder { pub status: String, pub in_reply_to_id: Option<u64>, pub media_ids: Option<Vec<u64>>, pub sensitive: Option<bool>, pub spoiler_text: Option<String>, pub visibility: Option<Visibility>, }
A builder pattern struct for constructing a status.
Fields
status: String
The text of the status.
in_reply_to_id: Option<u64>
Ids of accounts being replied to.
media_ids: Option<Vec<u64>>
Ids of media attachments being attached to the status.
sensitive: Option<bool>
Whether current status is sensitive.
spoiler_text: Option<String>
Text to precede the normal status text.
visibility: Option<Visibility>
Visibility of the status, defaults to Public
.
Methods
impl StatusBuilder
[src]
fn new(status: String) -> Self
[src]
Create a new status with text.
let status = StatusBuilder::new("Hello World!".into());
Trait Implementations
impl Debug for StatusBuilder
[src]
impl Default for StatusBuilder
[src]
fn default() -> StatusBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for StatusBuilder
[src]
fn clone(&self) -> StatusBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more