pub enum VreCmd {
Project {
cmd: ProjectCmd,
},
DataModel {
cmd: DataModelCmd,
},
ResourceType {
cmd: ResourceTypeCmd,
},
Resource {
cmd: ResourceCmd,
},
}Expand description
VRE noun-group subcommands.
Variants§
Project
Manage DSP projects.
A project is the top-level container on DSP. Every data-model and resource belongs to exactly one project. See also: dsp docs concepts
Fields
§
cmd: ProjectCmdDataModel
Manage data-models within a project.
A data-model (called “ontology” in DSP-API) defines the schema for a project’s resources: the resource-types, their fields, and value-types.
Fields
§
cmd: DataModelCmdResourceType
Manage resource-types within a data-model.
A resource-type (called “class” in DSP-API) defines the structure of one kind of scholarly object: its fields, value-types, and cardinalities.
Fields
§
cmd: ResourceTypeCmdResource
List resource instances within a project.
Fetches the actual data instances (scholarly objects) stored in the DSP server for a given resource-type, with optional pagination. See also: dsp docs concepts
Fields
§
cmd: ResourceCmdTrait Implementations§
Source§impl FromArgMatches for VreCmd
impl FromArgMatches for VreCmd
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<'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>
Assign values from
ArgMatches to self.Source§impl Subcommand for VreCmd
impl Subcommand for VreCmd
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for VreCmd
impl RefUnwindSafe for VreCmd
impl Send for VreCmd
impl Sync for VreCmd
impl Unpin for VreCmd
impl UnsafeUnpin for VreCmd
impl UnwindSafe for VreCmd
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