pub enum ResourceCmd {
List(ResourceListArgs),
Describe(ResourceDescribeArgs),
}Expand description
Resource verb subcommands.
Variants§
List(ResourceListArgs)
List resource instances of a given type within a project.
Fetches the actual data instances stored in DSP for a resource-type.
Supports single-page (--page N) and all-pages (--all) modes.
Authentication is optional; anonymous callers see only public resources.
See also: dsp docs concepts
Describe(ResourceDescribeArgs)
Fetch the envelope metadata of a single resource by its internal IRI.
Returns the resource’s label, resource-type, IRI, ARK URL, creation and
last-modification dates, owning project, owner, visibility, and your
access level. Field values (the actual data) are omitted by default;
pass --values to include them.
Use --resource with the resource’s internal IRI. ARK addressing is not
supported in v1 — use the internal IRI directly. Optionally, supply
--project to guard that the resource belongs to the expected project.
Authentication is optional; anonymous callers see only public resources.
See also: dsp docs concepts
Trait Implementations§
Source§impl Debug for ResourceCmd
impl Debug for ResourceCmd
Source§impl FromArgMatches for ResourceCmd
impl FromArgMatches for ResourceCmd
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for ResourceCmd
impl Subcommand for ResourceCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand