diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-16 10:57:40 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-16 10:57:40 +0100 |
commit | 9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe (patch) | |
tree | 52e39085589303d3d2e386a3575152fb6594bb61 /common/src/lib.rs | |
parent | e3f1a8ac9f4c9a015e9eac769fb3262e3bd16bad (diff) | |
download | jellything-9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe.tar jellything-9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe.tar.bz2 jellything-9f9449ddd58eb07d20e14e7a75c7387c9cc17ebe.tar.zst |
write more code
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r-- | common/src/lib.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index e329d2e..d5fc3fc 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -1,6 +1,7 @@ -use std::{collections::BTreeMap, path::PathBuf}; +pub mod r#impl; use serde::{Deserialize, Serialize}; +use std::collections::BTreeMap; #[derive(Debug, Clone, Deserialize, Serialize)] pub struct DirectoryInfo { @@ -10,12 +11,6 @@ pub struct DirectoryInfo { #[derive(Debug, Clone, Deserialize, Serialize)] pub struct ItemInfo { pub title: String, - pub source: Source, -} - -#[derive(Debug, Clone, Deserialize, Serialize)] -pub struct Source { - pub path: PathBuf, pub tracks: BTreeMap<u64, SourceTrack>, } @@ -28,7 +23,7 @@ pub struct SourceTrack { } #[derive(Debug, Clone, Deserialize, Serialize)] -#[serde(rename_all = "snake_case", tag = "kind")] +#[serde(rename_all = "snake_case")] pub enum SourceTrackKind { Video { width: u64, |