Struct plex_api::Limitation
source · pub struct Limitation<C, S> {
pub codec: Option<C>,
pub setting: S,
pub constraint: Constraint,
}
Expand description
Limitations add a constraint to the supported media format.
They generally set the maximum or minimum value of a setting or constrain the setting to a specific list of values. So for example you can set the maximum video width or the maximum number of audio channels. Limitations are either set on a per-codec basis or apply to all codecs.
Fields§
§codec: Option<C>
§setting: S
§constraint: Constraint
Trait Implementations§
source§impl<C: Clone, S: Clone> Clone for Limitation<C, S>
impl<C: Clone, S: Clone> Clone for Limitation<C, S>
source§fn clone(&self) -> Limitation<C, S>
fn clone(&self) -> Limitation<C, S>
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<C, S> From<(C, S, Constraint)> for Limitation<C, S>
impl<C, S> From<(C, S, Constraint)> for Limitation<C, S>
source§fn from((codec, setting, constraint): (C, S, Constraint)) -> Self
fn from((codec, setting, constraint): (C, S, Constraint)) -> Self
Converts to this type from the input type.
source§impl<C, S> From<(Option<C>, S, Constraint)> for Limitation<C, S>
impl<C, S> From<(Option<C>, S, Constraint)> for Limitation<C, S>
source§fn from((codec, setting, constraint): (Option<C>, S, Constraint)) -> Self
fn from((codec, setting, constraint): (Option<C>, S, Constraint)) -> Self
Converts to this type from the input type.
source§impl<C, S> From<(S, Constraint)> for Limitation<C, S>
impl<C, S> From<(S, Constraint)> for Limitation<C, S>
source§fn from((setting, constraint): (S, Constraint)) -> Self
fn from((setting, constraint): (S, Constraint)) -> Self
Converts to this type from the input type.