pub struct EmbedMedia<'a> {
pub url: Option<TitanString<'a>>,
pub proxy_url: Option<TitanString<'a>>,
pub height: Option<u32>,
pub width: Option<u32>,
}Expand description
Embed media (image, thumbnail, video).
Fields§
§url: Option<TitanString<'a>>URL.
proxy_url: Option<TitanString<'a>>Proxy URL.
height: Option<u32>Height.
width: Option<u32>Width.
Trait Implementations§
Source§impl<'a> Clone for EmbedMedia<'a>
impl<'a> Clone for EmbedMedia<'a>
Source§fn clone(&self) -> EmbedMedia<'a>
fn clone(&self) -> EmbedMedia<'a>
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<'a> Debug for EmbedMedia<'a>
impl<'a> Debug for EmbedMedia<'a>
Source§impl<'de, 'a> Deserialize<'de> for EmbedMedia<'a>
impl<'de, 'a> Deserialize<'de> for EmbedMedia<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for EmbedMedia<'a>
impl<'a> RefUnwindSafe for EmbedMedia<'a>
impl<'a> Send for EmbedMedia<'a>
impl<'a> Sync for EmbedMedia<'a>
impl<'a> Unpin for EmbedMedia<'a>
impl<'a> UnwindSafe for EmbedMedia<'a>
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