Struct ruma_events::audio::AudioDetailsContentBlock
source · pub struct AudioDetailsContentBlock {
pub duration: Duration,
pub waveform: Vec<Amplitude>,
}
Expand description
A block for details of audio content.
Fields§
§duration: Duration
The duration of the audio in seconds.
waveform: Vec<Amplitude>
The waveform representation of the audio content, if any.
This is optional and defaults to an empty array.
Implementations§
Trait Implementations§
source§impl Clone for AudioDetailsContentBlock
impl Clone for AudioDetailsContentBlock
source§fn clone(&self) -> AudioDetailsContentBlock
fn clone(&self) -> AudioDetailsContentBlock
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 AudioDetailsContentBlock
impl Debug for AudioDetailsContentBlock
source§impl<'de> Deserialize<'de> for AudioDetailsContentBlock
impl<'de> Deserialize<'de> for AudioDetailsContentBlock
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
Auto Trait Implementations§
impl Freeze for AudioDetailsContentBlock
impl RefUnwindSafe for AudioDetailsContentBlock
impl Send for AudioDetailsContentBlock
impl Sync for AudioDetailsContentBlock
impl Unpin for AudioDetailsContentBlock
impl UnwindSafe for AudioDetailsContentBlock
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)