embystream 0.0.22

Another Emby streaming application (frontend/backend separation) written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::time::SystemTime;

#[derive(Debug, Clone)]
pub struct Metadata {
    pub file_size: u64,
    pub file_name: String,
    pub format: String,
    pub last_modified: Option<SystemTime>,
    pub updated_at: SystemTime,
}

impl Metadata {
    pub fn is_valid(&self) -> bool {
        self.file_size > 0
    }
}