#[non_exhaustive]pub struct EncoderSettingsBuilder { /* private fields */ }Expand description
A builder for EncoderSettings.
Implementations§
Source§impl EncoderSettingsBuilder
impl EncoderSettingsBuilder
Sourcepub fn audio_descriptions(self, input: AudioDescription) -> Self
pub fn audio_descriptions(self, input: AudioDescription) -> Self
Appends an item to audio_descriptions.
To override the contents of this collection use set_audio_descriptions.
Placeholder documentation for __listOfAudioDescription
Sourcepub fn set_audio_descriptions(
self,
input: Option<Vec<AudioDescription>>,
) -> Self
pub fn set_audio_descriptions( self, input: Option<Vec<AudioDescription>>, ) -> Self
Placeholder documentation for __listOfAudioDescription
Sourcepub fn get_audio_descriptions(&self) -> &Option<Vec<AudioDescription>>
pub fn get_audio_descriptions(&self) -> &Option<Vec<AudioDescription>>
Placeholder documentation for __listOfAudioDescription
Sourcepub fn avail_blanking(self, input: AvailBlanking) -> Self
pub fn avail_blanking(self, input: AvailBlanking) -> Self
Settings for ad avail blanking.
Sourcepub fn set_avail_blanking(self, input: Option<AvailBlanking>) -> Self
pub fn set_avail_blanking(self, input: Option<AvailBlanking>) -> Self
Settings for ad avail blanking.
Sourcepub fn get_avail_blanking(&self) -> &Option<AvailBlanking>
pub fn get_avail_blanking(&self) -> &Option<AvailBlanking>
Settings for ad avail blanking.
Sourcepub fn avail_configuration(self, input: AvailConfiguration) -> Self
pub fn avail_configuration(self, input: AvailConfiguration) -> Self
Event-wide configuration settings for ad avail insertion.
Sourcepub fn set_avail_configuration(self, input: Option<AvailConfiguration>) -> Self
pub fn set_avail_configuration(self, input: Option<AvailConfiguration>) -> Self
Event-wide configuration settings for ad avail insertion.
Sourcepub fn get_avail_configuration(&self) -> &Option<AvailConfiguration>
pub fn get_avail_configuration(&self) -> &Option<AvailConfiguration>
Event-wide configuration settings for ad avail insertion.
Sourcepub fn blackout_slate(self, input: BlackoutSlate) -> Self
pub fn blackout_slate(self, input: BlackoutSlate) -> Self
Settings for blackout slate.
Sourcepub fn set_blackout_slate(self, input: Option<BlackoutSlate>) -> Self
pub fn set_blackout_slate(self, input: Option<BlackoutSlate>) -> Self
Settings for blackout slate.
Sourcepub fn get_blackout_slate(&self) -> &Option<BlackoutSlate>
pub fn get_blackout_slate(&self) -> &Option<BlackoutSlate>
Settings for blackout slate.
Sourcepub fn caption_descriptions(self, input: CaptionDescription) -> Self
pub fn caption_descriptions(self, input: CaptionDescription) -> Self
Appends an item to caption_descriptions.
To override the contents of this collection use set_caption_descriptions.
Settings for caption decriptions
Sourcepub fn set_caption_descriptions(
self,
input: Option<Vec<CaptionDescription>>,
) -> Self
pub fn set_caption_descriptions( self, input: Option<Vec<CaptionDescription>>, ) -> Self
Settings for caption decriptions
Sourcepub fn get_caption_descriptions(&self) -> &Option<Vec<CaptionDescription>>
pub fn get_caption_descriptions(&self) -> &Option<Vec<CaptionDescription>>
Settings for caption decriptions
Sourcepub fn feature_activations(self, input: FeatureActivations) -> Self
pub fn feature_activations(self, input: FeatureActivations) -> Self
Feature Activations
Sourcepub fn set_feature_activations(self, input: Option<FeatureActivations>) -> Self
pub fn set_feature_activations(self, input: Option<FeatureActivations>) -> Self
Feature Activations
Sourcepub fn get_feature_activations(&self) -> &Option<FeatureActivations>
pub fn get_feature_activations(&self) -> &Option<FeatureActivations>
Feature Activations
Sourcepub fn global_configuration(self, input: GlobalConfiguration) -> Self
pub fn global_configuration(self, input: GlobalConfiguration) -> Self
Configuration settings that apply to the event as a whole.
Sourcepub fn set_global_configuration(
self,
input: Option<GlobalConfiguration>,
) -> Self
pub fn set_global_configuration( self, input: Option<GlobalConfiguration>, ) -> Self
Configuration settings that apply to the event as a whole.
Sourcepub fn get_global_configuration(&self) -> &Option<GlobalConfiguration>
pub fn get_global_configuration(&self) -> &Option<GlobalConfiguration>
Configuration settings that apply to the event as a whole.
Sourcepub fn motion_graphics_configuration(
self,
input: MotionGraphicsConfiguration,
) -> Self
pub fn motion_graphics_configuration( self, input: MotionGraphicsConfiguration, ) -> Self
Settings for motion graphics.
Sourcepub fn set_motion_graphics_configuration(
self,
input: Option<MotionGraphicsConfiguration>,
) -> Self
pub fn set_motion_graphics_configuration( self, input: Option<MotionGraphicsConfiguration>, ) -> Self
Settings for motion graphics.
Sourcepub fn get_motion_graphics_configuration(
&self,
) -> &Option<MotionGraphicsConfiguration>
pub fn get_motion_graphics_configuration( &self, ) -> &Option<MotionGraphicsConfiguration>
Settings for motion graphics.
Sourcepub fn nielsen_configuration(self, input: NielsenConfiguration) -> Self
pub fn nielsen_configuration(self, input: NielsenConfiguration) -> Self
Nielsen configuration settings.
Sourcepub fn set_nielsen_configuration(
self,
input: Option<NielsenConfiguration>,
) -> Self
pub fn set_nielsen_configuration( self, input: Option<NielsenConfiguration>, ) -> Self
Nielsen configuration settings.
Sourcepub fn get_nielsen_configuration(&self) -> &Option<NielsenConfiguration>
pub fn get_nielsen_configuration(&self) -> &Option<NielsenConfiguration>
Nielsen configuration settings.
Sourcepub fn output_groups(self, input: OutputGroup) -> Self
pub fn output_groups(self, input: OutputGroup) -> Self
Appends an item to output_groups.
To override the contents of this collection use set_output_groups.
Placeholder documentation for __listOfOutputGroup
Sourcepub fn set_output_groups(self, input: Option<Vec<OutputGroup>>) -> Self
pub fn set_output_groups(self, input: Option<Vec<OutputGroup>>) -> Self
Placeholder documentation for __listOfOutputGroup
Sourcepub fn get_output_groups(&self) -> &Option<Vec<OutputGroup>>
pub fn get_output_groups(&self) -> &Option<Vec<OutputGroup>>
Placeholder documentation for __listOfOutputGroup
Sourcepub fn timecode_config(self, input: TimecodeConfig) -> Self
pub fn timecode_config(self, input: TimecodeConfig) -> Self
Contains settings used to acquire and adjust timecode information from inputs. This field is required.
Sourcepub fn set_timecode_config(self, input: Option<TimecodeConfig>) -> Self
pub fn set_timecode_config(self, input: Option<TimecodeConfig>) -> Self
Contains settings used to acquire and adjust timecode information from inputs.
Sourcepub fn get_timecode_config(&self) -> &Option<TimecodeConfig>
pub fn get_timecode_config(&self) -> &Option<TimecodeConfig>
Contains settings used to acquire and adjust timecode information from inputs.
Sourcepub fn video_descriptions(self, input: VideoDescription) -> Self
pub fn video_descriptions(self, input: VideoDescription) -> Self
Appends an item to video_descriptions.
To override the contents of this collection use set_video_descriptions.
Placeholder documentation for __listOfVideoDescription
Sourcepub fn set_video_descriptions(
self,
input: Option<Vec<VideoDescription>>,
) -> Self
pub fn set_video_descriptions( self, input: Option<Vec<VideoDescription>>, ) -> Self
Placeholder documentation for __listOfVideoDescription
Sourcepub fn get_video_descriptions(&self) -> &Option<Vec<VideoDescription>>
pub fn get_video_descriptions(&self) -> &Option<Vec<VideoDescription>>
Placeholder documentation for __listOfVideoDescription
Sourcepub fn thumbnail_configuration(self, input: ThumbnailConfiguration) -> Self
pub fn thumbnail_configuration(self, input: ThumbnailConfiguration) -> Self
Thumbnail configuration settings.
Sourcepub fn set_thumbnail_configuration(
self,
input: Option<ThumbnailConfiguration>,
) -> Self
pub fn set_thumbnail_configuration( self, input: Option<ThumbnailConfiguration>, ) -> Self
Thumbnail configuration settings.
Sourcepub fn get_thumbnail_configuration(&self) -> &Option<ThumbnailConfiguration>
pub fn get_thumbnail_configuration(&self) -> &Option<ThumbnailConfiguration>
Thumbnail configuration settings.
Sourcepub fn color_correction_settings(self, input: ColorCorrectionSettings) -> Self
pub fn color_correction_settings(self, input: ColorCorrectionSettings) -> Self
Color Correction Settings
Sourcepub fn set_color_correction_settings(
self,
input: Option<ColorCorrectionSettings>,
) -> Self
pub fn set_color_correction_settings( self, input: Option<ColorCorrectionSettings>, ) -> Self
Color Correction Settings
Sourcepub fn get_color_correction_settings(&self) -> &Option<ColorCorrectionSettings>
pub fn get_color_correction_settings(&self) -> &Option<ColorCorrectionSettings>
Color Correction Settings
Sourcepub fn build(self) -> EncoderSettings
pub fn build(self) -> EncoderSettings
Consumes the builder and constructs a EncoderSettings.
Trait Implementations§
Source§impl Clone for EncoderSettingsBuilder
impl Clone for EncoderSettingsBuilder
Source§fn clone(&self) -> EncoderSettingsBuilder
fn clone(&self) -> EncoderSettingsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EncoderSettingsBuilder
impl Debug for EncoderSettingsBuilder
Source§impl Default for EncoderSettingsBuilder
impl Default for EncoderSettingsBuilder
Source§fn default() -> EncoderSettingsBuilder
fn default() -> EncoderSettingsBuilder
Source§impl PartialEq for EncoderSettingsBuilder
impl PartialEq for EncoderSettingsBuilder
impl StructuralPartialEq for EncoderSettingsBuilder
Auto Trait Implementations§
impl Freeze for EncoderSettingsBuilder
impl RefUnwindSafe for EncoderSettingsBuilder
impl Send for EncoderSettingsBuilder
impl Sync for EncoderSettingsBuilder
impl Unpin for EncoderSettingsBuilder
impl UnwindSafe for EncoderSettingsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);