pub struct Clip {
pub ulid: Ulid,
pub created_on: NaiveDateTime,
pub last_played: NaiveDateTime,
pub plays: i64,
pub speech_detected: String,
pub description: String,
pub audio_file: String,
pub phrases: Option<Phrases>,
}Fields§
§ulid: UlidThe unique identifier for the clip and primary key for the table.
created_on: NaiveDateTimeThe time when the clip was added to the database.
last_played: NaiveDateTimeThe last time the clip was played; this is equal to created_on when created.
plays: i64Number of times the clip has been played.
speech_detected: StringThe output of speech-to-text on the audio_file, optionally used as a matching phrase.
description: StringA description of the clip for human consumption.
audio_file: StringPath to the audio file, relative to the BTFM_DATA_DIR.
phrases: Option<Phrases>Phrases associated with the clip.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Clip
impl<'de> Deserialize<'de> for Clip
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 Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnwindSafe for Clip
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