pub struct Image {
pub name: String,
pub alt: String,
pub width: u32,
pub height: u32,
pub png: Vec<u8>,
}Expand description
A picture to send, with what it shows in words.
Fields§
§name: StringThe file name (chart.png).
alt: StringWhat it shows, for people who cannot see it and for platforms’ alt text.
width: u32Size in pixels.
height: u32Size in pixels.
png: Vec<u8>The PNG data. Never stored: empty in a prompt read back from the store, where it means the message keeps the picture it was sent with.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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