WIP change search semantics

This commit is contained in:
Dominik Werder
2021-10-12 19:01:19 +02:00
parent f829cefbf0
commit 52208650d1
2 changed files with 228 additions and 39 deletions

View File

@@ -259,6 +259,17 @@ impl Channel {
}
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
pub struct FilePos {
pub pos: u64,
}
impl From<FilePos> for u64 {
fn from(k: FilePos) -> Self {
k.pos
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum TimeRange {
Time { beg: DateTime<Utc>, end: DateTime<Utc> },