#[non_exhaustive]pub struct RoomImagePackEventContent {
pub images: BTreeMap<String, PackImage>,
pub pack: Option<PackInfo>,
}
Available on crate features
events
and unstable-msc2545
only.Expand description
The content of an im.ponies.room_emotes
event,
the unstable version of m.image_pack
in room state events.
State key is the identifier for the image pack in ImagePackRoomsEventContent.
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.images: BTreeMap<String, PackImage>
A list of images available in this image pack.
Keys in the map are shortcodes for the images.
pack: Option<PackInfo>
Image pack info.
Implementations§
Trait Implementations§
Source§impl Clone for RoomImagePackEventContent
impl Clone for RoomImagePackEventContent
Source§fn clone(&self) -> RoomImagePackEventContent
fn clone(&self) -> RoomImagePackEventContent
Returns a copy 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 Debug for RoomImagePackEventContent
impl Debug for RoomImagePackEventContent
Source§impl Default for RoomImagePackEventContent
impl Default for RoomImagePackEventContent
Source§fn default() -> RoomImagePackEventContent
fn default() -> RoomImagePackEventContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoomImagePackEventContent
impl<'de> Deserialize<'de> for RoomImagePackEventContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomImagePackEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomImagePackEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventContent for RoomImagePackEventContent
impl EventContent for RoomImagePackEventContent
Source§type EventType = StateEventType
type EventType = StateEventType
The Rust enum for the event kind’s known types.
Source§fn event_type(&self) -> <RoomImagePackEventContent as EventContent>::EventType
fn event_type(&self) -> <RoomImagePackEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.Source§impl From<RoomImagePackEventContent> for AnyStateEventContent
impl From<RoomImagePackEventContent> for AnyStateEventContent
Source§fn from(c: RoomImagePackEventContent) -> AnyStateEventContent
fn from(c: RoomImagePackEventContent) -> AnyStateEventContent
Converts to this type from the input type.
Source§impl RedactContent for RoomImagePackEventContent
impl RedactContent for RoomImagePackEventContent
Source§type Redacted = RedactedRoomImagePackEventContent
type Redacted = RedactedRoomImagePackEventContent
The redacted form of the event’s content.
Source§fn redact(self, version: &RoomVersionId) -> RedactedRoomImagePackEventContent
fn redact(self, version: &RoomVersionId) -> RedactedRoomImagePackEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl Serialize for RoomImagePackEventContent
impl Serialize for RoomImagePackEventContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StaticStateEventContent for RoomImagePackEventContent
impl StaticStateEventContent for RoomImagePackEventContent
Source§type PossiblyRedacted = PossiblyRedactedRoomImagePackEventContent
type PossiblyRedacted = PossiblyRedactedRoomImagePackEventContent
The possibly redacted form of the event’s content.
Source§type Unsigned = StateUnsigned<<RoomImagePackEventContent as StaticStateEventContent>::PossiblyRedacted>
type Unsigned = StateUnsigned<<RoomImagePackEventContent as StaticStateEventContent>::PossiblyRedacted>
The type of the event’s
unsigned
field.Auto Trait Implementations§
impl Freeze for RoomImagePackEventContent
impl RefUnwindSafe for RoomImagePackEventContent
impl Send for RoomImagePackEventContent
impl Sync for RoomImagePackEventContent
impl Unpin for RoomImagePackEventContent
impl UnwindSafe for RoomImagePackEventContent
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