pub struct UnfurledMediaItem {
pub url: String,
pub proxy_url: Option<String>,
pub height: Option<Option<u32>>,
pub width: Option<Option<u32>>,
pub content_type: Option<String>,
}
Expand description
Unfurled media item for use in components.
Fields§
§url: String
Supports arbitrary urls and attachment://<filename>
references.
proxy_url: Option<String>
The proxied url of the media item. This field is ignored and provided by the API as part of the response.
height: Option<Option<u32>>
The height of the media item. This field is ignored and provided by the API as part of the response.
width: Option<Option<u32>>
The width of the media item. This field is ignored and provided by the API as part of the response.
content_type: Option<String>
The media type of the content. This field is ignored and provided by the API as part of the response.
Trait Implementations§
Source§impl Clone for UnfurledMediaItem
impl Clone for UnfurledMediaItem
Source§fn clone(&self) -> UnfurledMediaItem
fn clone(&self) -> UnfurledMediaItem
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 UnfurledMediaItem
impl Debug for UnfurledMediaItem
Source§impl<'de> Deserialize<'de> for UnfurledMediaItem
impl<'de> Deserialize<'de> for UnfurledMediaItem
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 Hash for UnfurledMediaItem
impl Hash for UnfurledMediaItem
Source§impl PartialEq for UnfurledMediaItem
impl PartialEq for UnfurledMediaItem
Source§impl Serialize for UnfurledMediaItem
impl Serialize for UnfurledMediaItem
impl Eq for UnfurledMediaItem
impl StructuralPartialEq for UnfurledMediaItem
Auto Trait Implementations§
impl Freeze for UnfurledMediaItem
impl RefUnwindSafe for UnfurledMediaItem
impl Send for UnfurledMediaItem
impl Sync for UnfurledMediaItem
impl Unpin for UnfurledMediaItem
impl UnwindSafe for UnfurledMediaItem
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