pub(crate) enum RelationTypesCommands {
Show 16 variants
#[non_exhaustive] List,
#[non_exhaustive] Get {
relation_ty: RelationTypeId,
},
#[non_exhaustive] ListProperties {
relation_ty: RelationTypeId,
},
#[non_exhaustive] ListExtensions {
relation_ty: RelationTypeId,
},
#[non_exhaustive] ListComponents {
relation_ty: RelationTypeId,
},
#[non_exhaustive] GetJsonSchema {
relation_ty: RelationTypeId,
},
#[non_exhaustive] Create(CreateRelationTypeArgs),
#[non_exhaustive] Delete {
relation_ty: RelationTypeId,
},
#[non_exhaustive] AddProperty(RelationTypeAddPropertyArgs),
#[non_exhaustive] RemoveProperty(RelationTypePropertyArgs),
#[non_exhaustive] AddExtension(RelationTypeAddExtensionArgs),
#[non_exhaustive] RemoveExtension(RelationExtensionTypeIdArgs),
#[non_exhaustive] AddComponent(RelationComponentTypeIdArgs),
#[non_exhaustive] RemoveComponent(RelationComponentTypeIdArgs),
#[non_exhaustive] UpdateDescription(RelationTypeUpdateDescriptionArgs),
#[non_exhaustive] JsonSchema,
}Variants§
#[non_exhaustive]List
List all relation types.
#[non_exhaustive]Get
Prints a single relation type.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
relation_ty: RelationTypeId#[non_exhaustive]ListProperties
List the properties of an relation type.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
relation_ty: RelationTypeId#[non_exhaustive]ListExtensions
List the extensions of an relation type.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
relation_ty: RelationTypeId#[non_exhaustive]ListComponents
List the components of an relation type.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
relation_ty: RelationTypeId#[non_exhaustive]GetJsonSchema
Prints the JSON Schema of an relation type.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
relation_ty: RelationTypeId#[non_exhaustive]Create(CreateRelationTypeArgs)
Creates a new relation type.
#[non_exhaustive]Delete
Deletes a relation type.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
relation_ty: RelationTypeId#[non_exhaustive]AddProperty(RelationTypeAddPropertyArgs)
Adds a property to a relation type.
#[non_exhaustive]RemoveProperty(RelationTypePropertyArgs)
Removes a property from a relation type.
#[non_exhaustive]AddExtension(RelationTypeAddExtensionArgs)
Adds an extension to a relation type.
#[non_exhaustive]RemoveExtension(RelationExtensionTypeIdArgs)
Removes an extension from a relation type.
#[non_exhaustive]AddComponent(RelationComponentTypeIdArgs)
Adds a component to a relation type.
#[non_exhaustive]RemoveComponent(RelationComponentTypeIdArgs)
Removes a component from a relation type.
#[non_exhaustive]UpdateDescription(RelationTypeUpdateDescriptionArgs)
Updates the description of a relation type.
#[non_exhaustive]JsonSchema
Prints the JSON Schema of relation types.
Trait Implementations§
Source§impl Clone for RelationTypesCommands
impl Clone for RelationTypesCommands
Source§fn clone(&self) -> RelationTypesCommands
fn clone(&self) -> RelationTypesCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationTypesCommands
impl Debug for RelationTypesCommands
Source§impl FromArgMatches for RelationTypesCommands
impl FromArgMatches for RelationTypesCommands
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 RelationTypesCommands
impl Subcommand for RelationTypesCommands
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 RelationTypesCommands
impl RefUnwindSafe for RelationTypesCommands
impl Send for RelationTypesCommands
impl Sync for RelationTypesCommands
impl Unpin for RelationTypesCommands
impl UnwindSafe for RelationTypesCommands
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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