pub struct ResourceListArgs {
pub server: Option<String>,
pub project: Option<String>,
pub resource_type: Option<String>,
pub data_model: Option<String>,
pub page: Option<u32>,
pub all: bool,
pub filter: Option<String>,
pub order_by: Option<String>,
pub format: FormatArgs,
}Expand description
Arguments for dsp vre resource list.
Fields§
§server: Option<String>DSP server URL or shortcut (e.g. https://api.example.org or prod).
Can also be set via the DSP_SERVER environment variable or a .env file.
project: Option<String>Shortcode, shortname, or IRI of the project.
resource_type: Option<String>Name or full IRI of the resource-type to list instances of.
A bare name triggers a scan across all project data-models; use
--data-model or a full IRI (:// heuristic) to skip the scan.
data_model: Option<String>Name or IRI of the data-model to scope the resource-type search. Optional; narrows the bare-name scan to one data-model.
page: Option<u32>Page number to fetch (zero-based). Cannot be combined with --all.
Defaults to page 0 when neither --page nor --all is given.
all: boolFetch all pages until the server reports no more results.
Cannot be combined with --page.
filter: Option<String>Filter resources by case-insensitive substring over the label.
order_by: Option<String>Field name (e.g. title) or full field IRI to sort by (ascending).
A bare field name is resolved to the resource-type’s field IRI;
a full IRI (contains ://) is passed to the server verbatim.
Targets project-defined fields; ascending order only.
format: FormatArgsTrait Implementations§
Source§impl Args for ResourceListArgs
impl Args for ResourceListArgs
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 Debug for ResourceListArgs
impl Debug for ResourceListArgs
Source§impl FromArgMatches for ResourceListArgs
impl FromArgMatches for ResourceListArgs
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.