[−][src]Struct mammut::status_builder::StatusBuilder
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]
fn default() -> StatusBuilder
[src]
impl Clone for StatusBuilder
[src]
fn clone(&self) -> 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
impl Send for StatusBuilder
impl Unpin for StatusBuilder
impl Sync for StatusBuilder
impl UnwindSafe for StatusBuilder
impl RefUnwindSafe for StatusBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,