librespot/metadata/src/video.rs

19 lines
412 B
Rust
Raw Normal View History

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);