[][src]Struct mammut::status_builder::StatusBuilder

pub struct StatusBuilder {
    pub status: String,
    pub in_reply_to_id: Option<String>,
    pub media_ids: Option<Vec<String>>,
    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<String>

The ID of the status this status is replying to, if the status is a reply.

media_ids: Option<Vec<String>>

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]

pub fn new(status: String) -> Self[src]

Create a new status with text.

use mammut::status_builder::StatusBuilder;

let status = StatusBuilder::new("Hello World!".into());

Trait Implementations

impl Default for StatusBuilder[src]

impl Clone for StatusBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for StatusBuilder[src]

impl Serialize for StatusBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err