Struct ruma_common::events::video::VideoEventContentWithoutRelation
source · pub struct VideoEventContentWithoutRelation {
pub message: MessageContent,
pub file: FileContent,
pub video: Box<VideoContent>,
pub thumbnail: Vec<ThumbnailContent>,
pub caption: Option<MessageContent>,
}Available on crate features
events and unstable-msc3553 only.Expand description
Form of VideoEventContent without relation.
To construct this type, construct a VideoEventContent and then use one of its ::from() / .into() methods.
Fields§
§message: MessageContentThe text representation of the message.
file: FileContentThe file content of the message.
video: Box<VideoContent>The video content of the message.
thumbnail: Vec<ThumbnailContent>The thumbnails of the message.
caption: Option<MessageContent>The captions of the message.
Implementations§
source§impl VideoEventContentWithoutRelation
impl VideoEventContentWithoutRelation
sourcepub fn with_relation(
self,
relates_to: Option<Relation<VideoEventContentWithoutRelation>>
) -> VideoEventContent
pub fn with_relation(
self,
relates_to: Option<Relation<VideoEventContentWithoutRelation>>
) -> VideoEventContent
Transform self into a VideoEventContent with the given relation.
Trait Implementations§
source§impl Clone for VideoEventContentWithoutRelation
impl Clone for VideoEventContentWithoutRelation
source§fn clone(&self) -> VideoEventContentWithoutRelation
fn clone(&self) -> VideoEventContentWithoutRelation
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<'de> Deserialize<'de> for VideoEventContentWithoutRelation
impl<'de> Deserialize<'de> for VideoEventContentWithoutRelation
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
source§impl From<VideoEventContent> for VideoEventContentWithoutRelation
impl From<VideoEventContent> for VideoEventContentWithoutRelation
source§fn from(c: VideoEventContent) -> Self
fn from(c: VideoEventContent) -> Self
Converts to this type from the input type.