pub struct Movies {
pub file_path: Option<String>,
pub public_file_path: Option<String>,
}
Expand description
Movies configuration
Fields§
§file_path: Option<String>
Path to the movies file
public_file_path: Option<String>
public path to the movies file
Implementations§
source§impl Movies
impl Movies
sourcepub fn get_movie_path(config: &mut Config) -> PathBuf
pub fn get_movie_path(config: &mut Config) -> PathBuf
Get Movie path
sourcepub fn open_movies(config: &mut Config)
pub fn open_movies(config: &mut Config)
Open movie file
sourcepub fn get_all_movies(config: &mut Config) -> AllMovies
pub fn get_all_movies(config: &mut Config) -> AllMovies
Get all movies
sourcefn print_sorted_movies(config: &mut Config, matches: &ArgMatches)
fn print_sorted_movies(config: &mut Config, matches: &ArgMatches)
Print the movies sorted by note
sourcefn group_movies_by_date(movies: &AllMovies) -> HashMap<u64, Vec<&OneMovie>>
fn group_movies_by_date(movies: &AllMovies) -> HashMap<u64, Vec<&OneMovie>>
Group movies by date
sourcefn print_stats(config: &mut Config, matches: &ArgMatches)
fn print_stats(config: &mut Config, matches: &ArgMatches)
Print the stats of the movies
sourcepub fn sync_movies(config: &mut Config, opt_matches: Option<&ArgMatches>)
pub fn sync_movies(config: &mut Config, opt_matches: Option<&ArgMatches>)
Sync the public movie file
Trait Implementations§
source§impl CliCommand for Movies
impl CliCommand for Movies
source§impl<'de> Deserialize<'de> for Movies
impl<'de> Deserialize<'de> for Movies
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 Movies
impl RefUnwindSafe for Movies
impl Send for Movies
impl Sync for Movies
impl Unpin for Movies
impl UnwindSafe for Movies
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