pub struct CreateArgs {
pub base: CreateArgsBase,
pub scopes: ScopesArg,
pub client_id: Option<String>,
pub client_id_env: Option<String>,
pub client_secret: Option<String>,
pub client_secret_env: Option<String>,
pub refresh_token: Option<String>,
pub refresh_token_env: Option<String>,
pub default_calendar: Option<String>,
pub self_email: Option<String>,
}Fields§
§base: CreateArgsBase§scopes: ScopesArg§client_id: Option<String>OAuth 2.0 client ID from Google Cloud Console (Desktop app type). Not a secret, but zad still stores it in the keychain for co-location with the other OAuth fields.
client_id_env: Option<String>Read --client-id from this environment variable instead.
client_secret: Option<String>OAuth 2.0 client secret issued alongside --client-id. Google
calls this a “secret” even for Desktop-app clients; we treat
it as one.
client_secret_env: Option<String>Read --client-secret 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 via Google’s OAuth Playground.
refresh_token_env: Option<String>Read --refresh-token from this environment variable instead.
default_calendar: Option<String>Optional default calendar ID (primary, an email, or an
alias). Runtime verbs that omit --calendar will use this.
self_email: Option<String>The authenticated user’s primary email. Normally captured from
Google’s userinfo endpoint 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
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>
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>
ArgMatches to self.