[][src]Struct elefren::entities::attachment::Attachment

pub struct Attachment {
    pub id: String,
    pub media_type: MediaType,
    pub url: String,
    pub remote_url: Option<String>,
    pub preview_url: String,
    pub text_url: Option<String>,
    pub meta: Option<Meta>,
    pub description: Option<String>,
}

A struct representing a media attachment.

Fields

id: String

ID of the attachment.

media_type: MediaType

The media type of an attachment.

url: String

URL of the locally hosted version of the image.

remote_url: Option<String>

For remote images, the remote URL of the original image.

preview_url: String

URL of the preview image.

text_url: Option<String>

Shorter URL for the image, for insertion into text (only present on local images)

meta: Option<Meta>

Meta information about the attachment.

description: Option<String>

Noop will be removed.

Trait Implementations

impl PartialEq<Attachment> for Attachment[src]

impl Clone for Attachment[src]

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

Performs copy-assignment from source. Read more

impl Debug for Attachment[src]

impl<'de> Deserialize<'de> for Attachment[src]

Auto Trait Implementations

impl Send for Attachment

impl Sync for Attachment

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

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

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