#[non_exhaustive]#[repr(u64)]pub enum CommercialLength {
Length30 = 30,
Length60 = 60,
Length90 = 90,
Length120 = 120,
Length150 = 150,
Length180 = 180,
}
Available on crate feature
stream
only.Expand description
Length of the commercial in seconds
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.
Length30 = 30
30s
Length60 = 60
60s
Length90 = 90
90s
Length120 = 120
120s
Length150 = 150
150s
Length180 = 180
180s
Trait Implementations§
Source§impl Clone for CommercialLength
impl Clone for CommercialLength
Source§fn clone(&self) -> CommercialLength
fn clone(&self) -> CommercialLength
Returns a copy 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 CommercialLength
impl Debug for CommercialLength
Source§impl<'de> Deserialize<'de> for CommercialLength
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for CommercialLength
Available on crate feature
serde
only.TODO: macroify?
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 Display for CommercialLength
impl Display for CommercialLength
Source§impl PartialEq for CommercialLength
impl PartialEq for CommercialLength
Source§impl Serialize for CommercialLength
Available on crate feature serde
only.
impl Serialize for CommercialLength
Available on crate feature
serde
only.Source§impl TryFrom<u64> for CommercialLength
impl TryFrom<u64> for CommercialLength
impl Copy for CommercialLength
impl Eq for CommercialLength
impl StructuralPartialEq for CommercialLength
Auto Trait Implementations§
impl Freeze for CommercialLength
impl RefUnwindSafe for CommercialLength
impl Send for CommercialLength
impl Sync for CommercialLength
impl Unpin for CommercialLength
impl UnwindSafe for CommercialLength
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)