pub struct EntityArgs {
pub repo: RepoArgs,
pub command: EntityCommand,
pub format: OutputFormat,
}Expand description
majordomus entity. Every object of the layer as an addressable node.
The command-line half of the projection the Cockpit renders and the HTTP and MCP
surfaces answer: kinds is every kind with the route of its index, and show is one
entity with everything joined to it. Neither enumerates anything — both read the index.
§Example
use majordomus_cli::cli::{Cli, Command, EntityArgs};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "entity", "kinds"]).unwrap();
let Command::Entity(args) = cli.command else { panic!("not the entity command") };
let _: EntityArgs = args;Fields§
§repo: RepoArgsWhere and how the repository is read.
command: EntityCommandkinds or show. Required: the group runs nothing of its own, so that every
runnable path here is one a capability declares.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for EntityArgs
impl Args for EntityArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 Debug for EntityArgs
impl Debug for EntityArgs
Source§impl FromArgMatches for EntityArgs
impl FromArgMatches for EntityArgs
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 EntityArgs
impl RefUnwindSafe for EntityArgs
impl Send for EntityArgs
impl Sync for EntityArgs
impl Unpin for EntityArgs
impl UnsafeUnpin for EntityArgs
impl UnwindSafe for EntityArgs
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