pub struct CreateArgs {
pub base: CreateArgsBase,
pub scopes: ScopesArg,
pub refresh_token: Option<String>,
pub refresh_token_env: Option<String>,
pub default_playlist: Option<String>,
pub self_channel: Option<String>,
}Fields§
§base: CreateArgsBase§scopes: ScopesArg§refresh_token: Option<String>Pre-minted OAuth refresh token. When provided, zad skips the device-flow prompt and stores the token verbatim. Useful for CI and for operators who already minted one elsewhere.
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 YouTube playlist ID (PL…) or a directory alias.
self_channel: Option<String>The authenticated user’s YouTube channel ID (UC…). Normally
captured during validate — pass this only to pre-seed the
value (non-interactive / testing).
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