#[non_exhaustive]pub enum AssetSource {
Uri(String),
List(String),
}Expand description
Which of the mutually-exclusive X-ASSET-URI / X-ASSET-LIST attributes
identifies the interstitial content. Appendix D §D.2: “An Interstitial
EXT-X-DATERANGE tag MUST have either X-ASSET-URI or X-ASSET-LIST; it
MUST NOT have both.”
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Uri(String)
X-ASSET-URI — a single interstitial asset’s absolute URI.
List(String)
X-ASSET-LIST — URI of a JSON asset-list resource (the §D.2
X-ASSET-LIST JSON schema). This crate carries the URI only; it does
not fetch or parse that JSON — doing so is HTTP, and this crate is
sans-IO.
Trait Implementations§
Source§impl Clone for AssetSource
impl Clone for AssetSource
Source§impl Debug for AssetSource
impl Debug for AssetSource
Source§impl<'de> Deserialize<'de> for AssetSource
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AssetSource
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
impl Eq for AssetSource
Source§impl PartialEq for AssetSource
impl PartialEq for AssetSource
Source§impl Serialize for AssetSource
Available on crate feature serde only.
impl Serialize for AssetSource
Available on crate feature
serde only.impl StructuralPartialEq for AssetSource
Auto Trait Implementations§
impl Freeze for AssetSource
impl RefUnwindSafe for AssetSource
impl Send for AssetSource
impl Sync for AssetSource
impl Unpin for AssetSource
impl UnsafeUnpin for AssetSource
impl UnwindSafe for AssetSource
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