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

The text of the status.

Ids of accounts being replied to.

Ids of media attachments being attached to the status.

Whether current status is sensitive.

Text to precede the normal status text.

Visibility of the status, defaults to Public.

Methods

impl StatusBuilder
[src]

[src]

Create a new status with text. let status = StatusBuilder::new("Hello World!".into());

Trait Implementations

impl Debug for StatusBuilder
[src]

[src]

Formats the value using the given formatter.

impl Default for StatusBuilder
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for StatusBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more