pub struct VideoEncoderSetting {
pub name: String,
pub value: VideoSettingValue,
}Expand description
One codec extension setting in a VideoEncoderConfig.
Fields§
§name: StringSetting name.
value: VideoSettingValueTyped setting value.
Implementations§
Source§impl VideoEncoderSetting
impl VideoEncoderSetting
Sourcepub fn new(name: impl Into<String>, value: VideoSettingValue) -> Result<Self>
pub fn new(name: impl Into<String>, value: VideoSettingValue) -> Result<Self>
Create a setting with a validated setting name and typed value.
Sourcepub fn boolean(name: impl Into<String>, value: bool) -> Result<Self>
pub fn boolean(name: impl Into<String>, value: bool) -> Result<Self>
Create a boolean codec extension setting.
Sourcepub fn integer(name: impl Into<String>, value: i64) -> Result<Self>
pub fn integer(name: impl Into<String>, value: i64) -> Result<Self>
Create an integer codec extension setting.
Sourcepub fn text(name: impl Into<String>, value: impl Into<String>) -> Result<Self>
pub fn text(name: impl Into<String>, value: impl Into<String>) -> Result<Self>
Create a text or choice codec extension setting.
Sourcepub fn as_cli_spec(&self) -> String
pub fn as_cli_spec(&self) -> String
Render this setting as a CLI-compatible name=value spec.
Trait Implementations§
Source§impl Clone for VideoEncoderSetting
impl Clone for VideoEncoderSetting
Source§impl Debug for VideoEncoderSetting
impl Debug for VideoEncoderSetting
impl Eq for VideoEncoderSetting
Source§impl PartialEq for VideoEncoderSetting
impl PartialEq for VideoEncoderSetting
impl StructuralPartialEq for VideoEncoderSetting
Auto Trait Implementations§
impl Forget for VideoEncoderSetting
impl Freeze for VideoEncoderSetting
impl RefUnwindSafe for VideoEncoderSetting
impl Send for VideoEncoderSetting
impl Sync for VideoEncoderSetting
impl Unpin for VideoEncoderSetting
impl UnsafeUnpin for VideoEncoderSetting
impl UnwindSafe for VideoEncoderSetting
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