pub struct PlaylistContent {
pub variant: ContentType,
pub items: Vec<MediaItem>,
pub offset: Option<u64>,
pub volume: Option<f64>,
pub speed: Option<f64>,
pub forward_cache: Option<u64>,
pub backward_cache: Option<u64>,
pub metadata: Option<MetadataObject>,
}Fields§
§variant: ContentType§items: Vec<MediaItem>§offset: Option<u64>Start position of the first item to play from the playlist
volume: Option<f64>The desired volume (0-1)
speed: Option<f64>The factor to multiply playback speed by (defaults to 1.0)
forward_cache: Option<u64>Count of media items should be pre-loaded forward from the current view index
backward_cache: Option<u64>Count of media items should be pre-loaded backward from the current view index
metadata: Option<MetadataObject>Trait Implementations§
Source§impl Clone for PlaylistContent
impl Clone for PlaylistContent
Source§fn clone(&self) -> PlaylistContent
fn clone(&self) -> PlaylistContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlaylistContent
impl Debug for PlaylistContent
Source§impl Default for PlaylistContent
impl Default for PlaylistContent
Source§fn default() -> PlaylistContent
fn default() -> PlaylistContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaylistContent
impl<'de> Deserialize<'de> for PlaylistContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlaylistContent
impl PartialEq for PlaylistContent
Source§impl Serialize for PlaylistContent
impl Serialize for PlaylistContent
impl StructuralPartialEq for PlaylistContent
Auto Trait Implementations§
impl Freeze for PlaylistContent
impl RefUnwindSafe for PlaylistContent
impl Send for PlaylistContent
impl Sync for PlaylistContent
impl Unpin for PlaylistContent
impl UnwindSafe for PlaylistContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more