pub struct CodecPolicyPatch {
pub source_codec: Option<Option<String>>,
pub source_position: Option<DecodePosition>,
pub decode_limits: Option<DecodeLimits>,
pub source_budget: Option<FaceBudget>,
pub result_codec: Option<Option<String>>,
pub result_position: Option<EncodePosition>,
pub result_budget: Option<FaceBudget>,
}Expand description
Patch applied at the tree, directory, or cell policy level.
Codec selectors are stable exported names, not process-local CodecId
values. The nested option permits a descendant to explicitly clear an
inherited source or result codec.
Fields§
§source_codec: Option<Option<String>>Inherit, clear, or replace the source codec name.
source_position: Option<DecodePosition>Replace the source decode/encode position.
decode_limits: Option<DecodeLimits>Replace the bounded source decode limits.
source_budget: Option<FaceBudget>Replace the source-face resource budget.
result_codec: Option<Option<String>>Inherit, clear, or replace the result codec name.
result_position: Option<EncodePosition>Replace the result encode position.
result_budget: Option<FaceBudget>Replace the result-face resource budget.
Implementations§
Source§impl CodecPolicyPatch
impl CodecPolicyPatch
Sourcepub fn empty() -> CodecPolicyPatch
pub fn empty() -> CodecPolicyPatch
No local policy changes.
Sourcepub fn set_codec(codec: impl Into<String>) -> CodecPolicyPatch
pub fn set_codec(codec: impl Into<String>) -> CodecPolicyPatch
Selects the same codec for source and result faces.
Sourcepub fn clear_codec() -> CodecPolicyPatch
pub fn clear_codec() -> CodecPolicyPatch
Clears inherited source and result codecs.
Sourcepub fn source_codec(codec: impl Into<String>) -> CodecPolicyPatch
pub fn source_codec(codec: impl Into<String>) -> CodecPolicyPatch
Selects a source codec without changing any other field.
Sourcepub fn result_codec(codec: impl Into<String>) -> CodecPolicyPatch
pub fn result_codec(codec: impl Into<String>) -> CodecPolicyPatch
Selects a result codec without changing any other field.
Trait Implementations§
Source§impl Clone for CodecPolicyPatch
impl Clone for CodecPolicyPatch
Source§fn clone(&self) -> CodecPolicyPatch
fn clone(&self) -> CodecPolicyPatch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more