pub struct AudioMetadata {
pub id: AudioId,
pub name: String,
pub description: String,
pub is_premium: bool,
pub publish_at: Option<DateTime<Utc>>,
pub styles: Vec<AudioStyleId>,
pub kind: AudioKind,
pub is_looping: bool,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
Over the wire representation of an audio file’s metadata.
Fields§
§id: AudioIdThe audio’s ID.
name: StringThe name of the audio.
description: StringThe description of the audio file.
Is the audio premium?
publish_at: Option<DateTime<Utc>>When the audio should be considered published (if at all).
styles: Vec<AudioStyleId>The styles associated with the audio file.
kind: AudioKindWhat kind of audio this is.
is_looping: boolShould the audio loop?
created_at: DateTime<Utc>When the audio was originally created.
updated_at: Option<DateTime<Utc>>When the audio was last updated.
Trait Implementations§
Source§impl Debug for AudioMetadata
impl Debug for AudioMetadata
Source§impl<'de> Deserialize<'de> for AudioMetadata
impl<'de> Deserialize<'de> for AudioMetadata
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 AudioMetadata
impl RefUnwindSafe for AudioMetadata
impl Send for AudioMetadata
impl Sync for AudioMetadata
impl Unpin for AudioMetadata
impl UnwindSafe for AudioMetadata
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