pub struct BatchConfigRoot {
pub test: bool,
pub common: CommonConfig,
pub titles: Vec<String>,
pub files: Vec<String>,
}Expand description
Root model for batch YAML format with common config.
Fields§
§test: boolTest mode flag - if true, delete videos after upload
common: CommonConfigCommon configuration for all videos
titles: Vec<String>List of video titles
files: Vec<String>List of video file paths
Implementations§
Source§impl BatchConfigRoot
impl BatchConfigRoot
Sourcepub fn parse_files(&self) -> Vec<Vec<String>>
pub fn parse_files(&self) -> Vec<Vec<String>>
Parse files entries into Vec<Vec
Sourcepub async fn validate_files_and_lengths(&self) -> Result<()>
pub async fn validate_files_and_lengths(&self) -> Result<()>
Validate that files exist and titles/files have matching lengths
Trait Implementations§
Source§impl Clone for BatchConfigRoot
impl Clone for BatchConfigRoot
Source§fn clone(&self) -> BatchConfigRoot
fn clone(&self) -> BatchConfigRoot
Returns a duplicate 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 Debug for BatchConfigRoot
impl Debug for BatchConfigRoot
Source§impl<'de> Deserialize<'de> for BatchConfigRoot
impl<'de> Deserialize<'de> for BatchConfigRoot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BatchConfigRoot
impl Serialize for BatchConfigRoot
Source§impl Validate for BatchConfigRoot
impl Validate for BatchConfigRoot
Source§impl<'v_a> ValidateArgs<'v_a> for BatchConfigRoot
impl<'v_a> ValidateArgs<'v_a> for BatchConfigRoot
Auto Trait Implementations§
impl Freeze for BatchConfigRoot
impl RefUnwindSafe for BatchConfigRoot
impl Send for BatchConfigRoot
impl Sync for BatchConfigRoot
impl Unpin for BatchConfigRoot
impl UnsafeUnpin for BatchConfigRoot
impl UnwindSafe for BatchConfigRoot
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