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