pub struct InstanceArg {
pub instance: Option<String>,
}Expand description
--instance: per-invocation Atlassian tenant override.
Scoped to the commands that read Atlassian credentials — subtree-global on
jira and confluence, and a plain flag on auth status — per the
placement rule in crate::cli::ai_backend_args. convert, auth login,
and auth logout never load credentials, so they reject it (#1778).
Fields§
§instance: Option<String>Overrides the Atlassian instance URL (e.g.
https://org.atlassian.net) for this JIRA/Confluence command.
Takes precedence over ATLASSIAN_INSTANCE_URL / settings.json (email
and API token still come from the environment/settings). Lets a
multi-site user target a specific tenant per invocation. Equivalent to
setting OMNI_DEV_ATLASSIAN_INSTANCE.
Implementations§
Source§impl InstanceArg
impl InstanceArg
Sourcepub fn apply(&self)
pub fn apply(&self)
Forwards --instance to the env var that
crate::atlassian::auth::load_credentials reads (#1117). When absent,
any existing value is left untouched so the env-var path still works.
Trait Implementations§
Source§impl Args for InstanceArg
impl Args for InstanceArg
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 Clone for InstanceArg
impl Clone for InstanceArg
Source§impl Debug for InstanceArg
impl Debug for InstanceArg
Source§impl Default for InstanceArg
impl Default for InstanceArg
Source§impl FromArgMatches for InstanceArg
impl FromArgMatches for InstanceArg
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.Auto Trait Implementations§
impl Freeze for InstanceArg
impl RefUnwindSafe for InstanceArg
impl Send for InstanceArg
impl Sync for InstanceArg
impl Unpin for InstanceArg
impl UnsafeUnpin for InstanceArg
impl UnwindSafe for InstanceArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more