btfm_api_structs/phrase.rs
1use serde::{Deserialize, Serialize};
2
3/// A phrase used to trigger one or more clips
4#[derive(Clone, Debug, Serialize, Deserialize)]
5pub struct Phrase {
6 pub ulid: ulid::Ulid,
7 pub phrase: String,
8}
9
10#[derive(Clone, Debug, Deserialize, Serialize)]
11pub struct CreatePhrase {
12 /// The phrase.
13 pub phrase: String,
14 /// The clip to associate the phrase to.
15 pub clip: ulid::Ulid,
16}
17
18#[derive(Clone, Debug, Deserialize, Serialize)]
19pub struct Phrases {
20 pub items: u64,
21 pub phrases: Vec<Phrase>,
22}