pub struct ViewScopeArgs {
pub scope: Option<String>,
pub project: Option<String>,
pub owner: Option<String>,
pub shared_with: Option<String>,
}Expand description
The explicit scope flags shared by create and share.
One flatten per verb rather than two hand-maintained copies, so a new scope field cannot be added to one and forgotten on the other.
Fields§
§scope: Option<String>Scope family: repository (the default) | project | user
project: Option<String>Project id, for --scope project
Resolved through the project registry; a project this repository does not know is refused by the registry, not by this flag.
owner: Option<String>Owner identity, for --scope user (metadata only — not an account)
Comma-separated shared-with identities, for --scope user
Trait Implementations§
Source§impl Args for ViewScopeArgs
impl Args for ViewScopeArgs
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 Clone for ViewScopeArgs
impl Clone for ViewScopeArgs
Source§impl Debug for ViewScopeArgs
impl Debug for ViewScopeArgs
impl Eq for ViewScopeArgs
Source§impl FromArgMatches for ViewScopeArgs
impl FromArgMatches for ViewScopeArgs
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.Source§impl PartialEq for ViewScopeArgs
impl PartialEq for ViewScopeArgs
impl StructuralPartialEq for ViewScopeArgs
Auto Trait Implementations§
impl Freeze for ViewScopeArgs
impl RefUnwindSafe for ViewScopeArgs
impl Send for ViewScopeArgs
impl Sync for ViewScopeArgs
impl Unpin for ViewScopeArgs
impl UnsafeUnpin for ViewScopeArgs
impl UnwindSafe for ViewScopeArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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