mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-12-22 20:16:27 +00:00
implement missing traits
This commit is contained in:
parent
6cd9fe7064
commit
20072c2695
4 changed files with 4 additions and 4 deletions
|
@ -94,7 +94,7 @@ use crate::{Error, RequiredVersion};
|
|||
/// ```
|
||||
///
|
||||
/// [`MediaPlaylist`]: crate::MediaPlaylist
|
||||
#[derive(Debug, Clone, Builder, PartialEq, Default)]
|
||||
#[derive(Builder, Default, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[builder(build_fn(validate = "Self::validate"))]
|
||||
#[builder(setter(into, strip_option))]
|
||||
pub struct MasterPlaylist {
|
||||
|
|
|
@ -16,7 +16,7 @@ use crate::utils::tag;
|
|||
use crate::{Error, RequiredVersion};
|
||||
|
||||
/// Media playlist.
|
||||
#[derive(Debug, Clone, Builder, PartialEq, PartialOrd)]
|
||||
#[derive(Builder, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[builder(build_fn(skip), setter(strip_option))]
|
||||
#[non_exhaustive]
|
||||
pub struct MediaPlaylist {
|
||||
|
|
|
@ -17,7 +17,7 @@ use crate::{Error, RequiredVersion};
|
|||
///
|
||||
/// [`MediaPlaylist`]: crate::MediaPlaylist
|
||||
/// [`VariantStream`]: crate::tags::VariantStream
|
||||
#[derive(ShortHand, Builder, Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(ShortHand, Builder, Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
#[shorthand(enable(must_use, into))]
|
||||
#[builder(setter(into))]
|
||||
#[builder(build_fn(validate = "Self::validate"))]
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::{Error, RequiredVersion};
|
|||
///
|
||||
/// By default, clients should start playback at this point when beginning a
|
||||
/// playback session.
|
||||
#[derive(ShortHand, PartialOrd, Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(ShortHand, PartialOrd, Debug, Clone, Copy, PartialEq, Eq, Ord, Hash)]
|
||||
#[shorthand(enable(must_use))]
|
||||
pub struct ExtXStart {
|
||||
/// The time offset of the [`MediaSegment`]s in the playlist.
|
||||
|
|
Loading…
Reference in a new issue