pub struct CreateArgs {
pub base: CreateArgsBase,
pub scopes: ScopesArg,
pub client_id: Option<String>,
pub client_id_env: Option<String>,
pub refresh_token: Option<String>,
pub refresh_token_env: Option<String>,
pub default_playlist: Option<String>,
}Fields§
§base: CreateArgsBase§scopes: ScopesArg§client_id: Option<String>OAuth 2.0 client ID from the Spotify Developer Dashboard. Not strictly secret, but zad still stores it in the keychain for co-location with the refresh token.
client_id_env: Option<String>Read --client-id from this environment variable instead.
refresh_token: Option<String>Pre-minted OAuth refresh token. When provided, zad skips the browser loopback and stores the token verbatim. Useful for CI and for operators who already minted one out-of-band.
refresh_token_env: Option<String>Read --refresh-token from this environment variable instead.
default_playlist: Option<String>Optional default playlist for verbs that omit --playlist.
Accepts a Spotify playlist ID, a spotify:playlist:<id> URI,
or a directory alias.
Trait Implementations§
Source§impl Args for CreateArgs
impl Args for CreateArgs
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 CreateArgsLike for CreateArgs
impl CreateArgsLike for CreateArgs
fn base(&self) -> &CreateArgsBase
Source§impl Debug for CreateArgs
impl Debug for CreateArgs
Source§impl FromArgMatches for CreateArgs
impl FromArgMatches for CreateArgs
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.Auto Trait Implementations§
impl Freeze for CreateArgs
impl RefUnwindSafe for CreateArgs
impl Send for CreateArgs
impl Sync for CreateArgs
impl Unpin for CreateArgs
impl UnsafeUnpin for CreateArgs
impl UnwindSafe for CreateArgs
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