1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! Modules for events in the *m.room* namespace.
//!
//! This module also contains types shared by events in its child namespaces.

pub mod aliases;
pub mod avatar;
pub mod canonical_alias;
pub mod create;
pub mod guest_access;
pub mod history_visibility;
pub mod join_rules;
pub mod member;
pub mod message;
pub mod name;
pub mod power_levels;
pub mod redaction;
pub mod third_party_invite;
pub mod topic;

/// Metadata about an image.
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct ImageInfo {
    /// The height of the image in pixels.
    pub height: u64,
    /// The MIME type of the image, e.g. "image/png."
    pub mimetype: String,
    /// The file size of the image in bytes.
    pub size: u64,
    /// The width of the image in pixels.
    pub width: u64,
}