librespot/metadata/src/video.rs

22 lines
456 B
Rust
Raw Normal View History

use std::fmt::Debug;
use std::ops::Deref;
use crate::util::from_repeated_message;
2021-12-08 18:53:45 +00:00
use librespot_core::file_id::FileId;
use librespot_protocol as protocol;
use protocol::metadata::VideoFile as VideoFileMessage;
#[derive(Debug, Clone)]
pub struct VideoFiles(pub Vec<FileId>);
impl Deref for VideoFiles {
type Target = Vec<FileId>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
from_repeated_message!(VideoFileMessage, VideoFiles);