pub struct SyncCliCommand {
pub file_paths: Vec<String>,
pub save_folder_path: Option<String>,
pub programs: Option<ProgramsConfig>,
}
Expand description
Movies configuration
Fields§
§file_paths: Vec<String>
Path to the movies file
save_folder_path: Option<String>
Path to the folder where to save the files
programs: Option<ProgramsConfig>
Programs configuration
Implementations§
source§impl SyncCliCommand
impl SyncCliCommand
sourcefn get_home_path() -> (PathBuf, String)
fn get_home_path() -> (PathBuf, String)
Get the home path
sourcefn save_files(config: &mut Config, _matches: &ArgMatches)
fn save_files(config: &mut Config, _matches: &ArgMatches)
Save the files to the specified folder
sourcefn add_file(config: &mut Config, _matches: &ArgMatches)
fn add_file(config: &mut Config, _matches: &ArgMatches)
Add a file to the list of files to save
sourcefn sync_programs_cargo(config: &mut Config)
fn sync_programs_cargo(config: &mut Config)
Sync the cargo programs
sourcefn sync_programs_nix(config: &mut Config)
fn sync_programs_nix(config: &mut Config)
Sync the nix-env programs
sourcefn sync_programs_vscode(config: &mut Config)
fn sync_programs_vscode(config: &mut Config)
Sync the vscode extensions
sourcefn sync_programs(config: &mut Config)
fn sync_programs(config: &mut Config)
Sync the programs
Trait Implementations§
source§impl CliCommand for SyncCliCommand
impl CliCommand for SyncCliCommand
source§impl Default for SyncCliCommand
impl Default for SyncCliCommand
source§fn default() -> SyncCliCommand
fn default() -> SyncCliCommand
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SyncCliCommand
impl<'de> Deserialize<'de> for SyncCliCommand
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
Auto Trait Implementations§
impl Freeze for SyncCliCommand
impl RefUnwindSafe for SyncCliCommand
impl Send for SyncCliCommand
impl Sync for SyncCliCommand
impl Unpin for SyncCliCommand
impl UnwindSafe for SyncCliCommand
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