pub struct AdBreakDecision {
pub id: String,
pub asset: AssetSource,
pub resume_offset: Option<f64>,
pub playout_limit: Option<f64>,
pub snap: Vec<SnapMode>,
pub restrict: Vec<RestrictMode>,
}Expand description
The decision for one ad break: which interstitial content to schedule and how the client should treat it, per Appendix D §D.2.
Fields§
§id: StringID of the rendered EXT-X-DATERANGE tag.
asset: AssetSourceX-ASSET-URI or X-ASSET-LIST.
resume_offset: Option<f64>X-RESUME-OFFSET in seconds; None = attribute omitted (the client
then treats it as the interstitial’s duration, per §D.2).
playout_limit: Option<f64>X-PLAYOUT-LIMIT in seconds; None = attribute omitted.
snap: Vec<SnapMode>X-SNAP identifiers, in the order they should be rendered.
restrict: Vec<RestrictMode>X-RESTRICT identifiers, in the order they should be rendered.
Implementations§
Source§impl AdBreakDecision
impl AdBreakDecision
Trait Implementations§
Source§impl Clone for AdBreakDecision
impl Clone for AdBreakDecision
Source§impl Debug for AdBreakDecision
impl Debug for AdBreakDecision
Source§impl<'de> Deserialize<'de> for AdBreakDecision
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AdBreakDecision
Available on crate feature
serde only.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 AdBreakDecision
impl PartialEq for AdBreakDecision
Source§impl Serialize for AdBreakDecision
Available on crate feature serde only.
impl Serialize for AdBreakDecision
Available on crate feature
serde only.impl StructuralPartialEq for AdBreakDecision
Auto Trait Implementations§
impl Freeze for AdBreakDecision
impl RefUnwindSafe for AdBreakDecision
impl Send for AdBreakDecision
impl Sync for AdBreakDecision
impl Unpin for AdBreakDecision
impl UnsafeUnpin for AdBreakDecision
impl UnwindSafe for AdBreakDecision
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