#[non_exhaustive]pub struct PackImage {
pub url: OwnedMxcUri,
pub body: Option<String>,
pub info: Option<ImageInfo>,
pub usage: BTreeSet<PackUsage>,
}
Expand description
An image object in a image pack.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.url: OwnedMxcUri
The MXC URI to the media file.
body: Option<String>
An optional text body for this image. Useful for the sticker body text or the emote alt text.
Defaults to the shortcode.
info: Option<ImageInfo>
The ImageInfo object used for the info
block of m.sticker
events.
usage: BTreeSet<PackUsage>
The usages for the image.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PackImage
impl<'de> Deserialize<'de> for PackImage
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 Freeze for PackImage
impl RefUnwindSafe for PackImage
impl Send for PackImage
impl Sync for PackImage
impl Unpin for PackImage
impl UnwindSafe for PackImage
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