mirror of
https://github.com/librespot-org/librespot.git
synced 2025-01-07 17:24:04 +00:00
20 lines
440 B
Rust
20 lines
440 B
Rust
use std::{fmt::Debug, ops::Deref};
|
|
|
|
use crate::util::from_repeated_message;
|
|
|
|
use librespot_core::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);
|