pub struct EmbedImage {
pub url: String,
pub proxy_url: Option<String>,
pub height: Option<u32>,
pub width: Option<u32>,
}Expand description
Represents the image information of an embed.
Fields§
§url: StringThe URL of the image.
proxy_url: Option<String>The proxy URL of the image.
height: Option<u32>The height of the image.
width: Option<u32>The width of the image.
Trait Implementations§
Source§impl Clone for EmbedImage
impl Clone for EmbedImage
Source§fn clone(&self) -> EmbedImage
fn clone(&self) -> EmbedImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeJson for EmbedImage
impl DeJson for EmbedImage
Source§impl Debug for EmbedImage
impl Debug for EmbedImage
Source§impl Default for EmbedImage
impl Default for EmbedImage
Source§fn default() -> EmbedImage
fn default() -> EmbedImage
Returns the “default value” for a type. Read more
Source§impl SerJson for EmbedImage
impl SerJson for EmbedImage
Auto Trait Implementations§
impl Freeze for EmbedImage
impl RefUnwindSafe for EmbedImage
impl Send for EmbedImage
impl Sync for EmbedImage
impl Unpin for EmbedImage
impl UnsafeUnpin for EmbedImage
impl UnwindSafe for EmbedImage
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