pub struct PostMetadata {
pub embeds: Option<Vec<PostMetadataEmbedsInner>>,
pub emojis: Option<Vec<Emoji>>,
pub files: Option<Vec<FileInfo>>,
pub images: Option<HashMap<String, PostMetadataImagesInner>>,
pub reactions: Option<Vec<Reaction>>,
pub priority: Option<Box<PostMetadataPriority>>,
pub acknowledgements: Option<Vec<PostAcknowledgement>>,
}Expand description
PostMetadata : Additional information used to display a post.
Fields§
§embeds: Option<Vec<PostMetadataEmbedsInner>>Information about content embedded in the post including OpenGraph previews, image link previews, and message attachments. This field will be null if the post does not contain embedded content.
emojis: Option<Vec<Emoji>>The custom emojis that appear in this point or have been used in reactions to this post. This field will be null if the post does not contain custom emojis.
files: Option<Vec<FileInfo>>The FileInfo objects for any files attached to the post. This field will be null if the post does not have any file attachments.
images: Option<HashMap<String, PostMetadataImagesInner>>An object mapping the URL of an external image to an object containing the dimensions of that image. This field will be null if the post or its embedded content does not reference any external images.
reactions: Option<Vec<Reaction>>Any reactions made to this point. This field will be null if no reactions have been made to this post.
priority: Option<Box<PostMetadataPriority>>§acknowledgements: Option<Vec<PostAcknowledgement>>Any acknowledgements made to this point.
Implementations§
Source§impl PostMetadata
impl PostMetadata
Sourcepub fn new() -> PostMetadata
pub fn new() -> PostMetadata
Additional information used to display a post.
Trait Implementations§
Source§impl Clone for PostMetadata
impl Clone for PostMetadata
Source§fn clone(&self) -> PostMetadata
fn clone(&self) -> PostMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more