pub struct LinkImage<'a> {
pub image_url: Cow<'a, str>,
pub url: Cow<'a, str>,
pub height: u32,
pub width: u32,
}
Fields§
§image_url: Cow<'a, str>
§url: Cow<'a, str>
§height: u32
§width: u32
Trait Implementations§
Source§impl<'a> MessageRead<'a> for LinkImage<'a>
impl<'a> MessageRead<'a> for LinkImage<'a>
Source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moreSource§impl<'a> MessageWrite for LinkImage<'a>
impl<'a> MessageWrite for LinkImage<'a>
impl<'a> StructuralPartialEq for LinkImage<'a>
Auto Trait Implementations§
impl<'a> Freeze for LinkImage<'a>
impl<'a> RefUnwindSafe for LinkImage<'a>
impl<'a> Send for LinkImage<'a>
impl<'a> Sync for LinkImage<'a>
impl<'a> Unpin for LinkImage<'a>
impl<'a> UnwindSafe for LinkImage<'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