1
0
Fork 0
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:
Luro02 2020-03-25 16:13:40 +01:00
parent 6cd9fe7064
commit 20072c2695
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF
4 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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"))]

View file

@ -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.