pub struct Fetch {
pub username: Option<String>,
pub page: Option<i32>,
pub limit: Option<i32>,
pub from: Option<i64>,
pub to: Option<i64>,
pub new_file: bool,
pub current_day: bool,
pub file_format: Option<String>,
}Expand description
A subcommand for fetching your listening history from Last.fm
Fields§
§username: Option<String>A Last.fm username
page: Option<i32>The page number to fetch. Defaults to first page.
limit: Option<i32>The number of results to fetch per page. Defaults to 50. Maximum is 200.
from: Option<i64>Beginning timestamp of a range - only display scrobbles after this time, in UNIX timestamp format
to: Option<i64>End timestamp of a range - only display scrobbles before this time, in UNIX timestamp format
new_file: boolCreate new file, rather than append tracks to an existing file
current_day: boolFetches all new tracks from beginning of current day, rather than since last saved track
file_format: Option<String>Specify which file format to use. Defaults to json
Trait Implementations§
Source§impl Clap for Fetch
impl Clap for Fetch
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§impl FromArgMatches for Fetch
impl FromArgMatches for Fetch
Source§fn from_arg_matches(matches: &ArgMatches) -> Self
fn from_arg_matches(matches: &ArgMatches) -> Self
It’s common to have an “application context” struct (sometimes called
config) that represents all the normalized values after being processed by
the CLI. Read more
Auto Trait Implementations§
impl Freeze for Fetch
impl RefUnwindSafe for Fetch
impl Send for Fetch
impl Sync for Fetch
impl Unpin for Fetch
impl UnwindSafe for Fetch
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