librespot_metadata/
video.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{
    fmt::Debug,
    ops::{Deref, DerefMut},
};

use crate::util::{impl_deref_wrapped, impl_from_repeated};

use librespot_core::FileId;

use librespot_protocol as protocol;
use protocol::metadata::VideoFile as VideoFileMessage;

#[derive(Debug, Clone, Default)]
pub struct VideoFiles(pub Vec<FileId>);

impl_deref_wrapped!(VideoFiles, Vec<FileId>);

impl_from_repeated!(VideoFileMessage, VideoFiles);