pub struct VideoCheckArgs {
pub video: PathBuf,
pub width: Option<u32>,
pub height: Option<u32>,
pub fps: Option<f64>,
pub codec: Option<String>,
pub min_duration: Option<f64>,
pub max_duration: Option<f64>,
pub require_audio: bool,
pub format: OutputFormat,
}Expand description
Arguments for video check
Fields§
§video: PathBufPath to the video file
width: Option<u32>Expected width
height: Option<u32>Expected height
fps: Option<f64>Expected FPS
codec: Option<String>Expected codec
min_duration: Option<f64>Minimum duration in seconds
max_duration: Option<f64>Maximum duration in seconds
require_audio: boolRequire audio stream
format: OutputFormatOutput format
Trait Implementations§
Source§impl Args for VideoCheckArgs
impl Args for VideoCheckArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for VideoCheckArgs
impl CommandFactory for VideoCheckArgs
Source§impl Debug for VideoCheckArgs
impl Debug for VideoCheckArgs
Source§impl FromArgMatches for VideoCheckArgs
impl FromArgMatches for VideoCheckArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for VideoCheckArgs
impl Parser for VideoCheckArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for VideoCheckArgs
impl RefUnwindSafe for VideoCheckArgs
impl Send for VideoCheckArgs
impl Sync for VideoCheckArgs
impl Unpin for VideoCheckArgs
impl UnsafeUnpin for VideoCheckArgs
impl UnwindSafe for VideoCheckArgs
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