pub struct ProcessedAttachment {
pub id: AttachmentId,
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>,
}Expand description
A media attachment which has been processed and has a URL.
Fields§
§id: AttachmentIdID of the attachment.
media_type: MediaTypeThe media type of an attachment.
url: StringURL of the locally hosted version of the image.
remote_url: Option<String>For remote images, the remote URL of the original image.
preview_url: StringURL 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§
Source§impl Clone for ProcessedAttachment
impl Clone for ProcessedAttachment
Source§fn clone(&self) -> ProcessedAttachment
fn clone(&self) -> ProcessedAttachment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessedAttachment
impl Debug for ProcessedAttachment
Source§impl<'de> Deserialize<'de> for ProcessedAttachment
impl<'de> Deserialize<'de> for ProcessedAttachment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProcessedAttachment
impl PartialEq for ProcessedAttachment
Source§impl Serialize for ProcessedAttachment
impl Serialize for ProcessedAttachment
impl StructuralPartialEq for ProcessedAttachment
Auto Trait Implementations§
impl Freeze for ProcessedAttachment
impl RefUnwindSafe for ProcessedAttachment
impl Send for ProcessedAttachment
impl Sync for ProcessedAttachment
impl Unpin for ProcessedAttachment
impl UnwindSafe for ProcessedAttachment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more