reactive_graph/client/types/relations/
commands.rs

1use crate::client::types::relations::args::add_extension::RelationTypeAddExtensionArgs;
2use crate::client::types::relations::args::add_property::RelationTypeAddPropertyArgs;
3use crate::client::types::relations::args::create::CreateRelationTypeArgs;
4use crate::client::types::relations::args::relation_component_type::RelationComponentTypeIdArgs;
5use crate::client::types::relations::args::relation_extension_type::RelationExtensionTypeIdArgs;
6use crate::client::types::relations::args::relation_type_property::RelationTypePropertyArgs;
7use crate::client::types::relations::args::type_id::RelationTypeIdArgs;
8use crate::client::types::relations::args::update_description::RelationTypeUpdateDescriptionArgs;
9use clap::Subcommand;
10
11#[derive(Subcommand, Debug, Clone)]
12pub(crate) enum RelationTypesCommands {
13    /// List all relation types.
14    #[non_exhaustive]
15    List,
16    /// Prints a single relation type.
17    #[non_exhaustive]
18    Get(RelationTypeIdArgs),
19    /// List the properties of an relation type.
20    #[non_exhaustive]
21    ListProperties(RelationTypeIdArgs),
22    /// List the extensions of an relation type.
23    #[non_exhaustive]
24    ListExtensions(RelationTypeIdArgs),
25    /// List the components of an relation type.
26    #[non_exhaustive]
27    ListComponents(RelationTypeIdArgs),
28    /// Creates a new relation type.
29    #[non_exhaustive]
30    Create(CreateRelationTypeArgs),
31    /// Deletes a relation type.
32    #[non_exhaustive]
33    Delete(RelationTypeIdArgs),
34    /// Adds a property to a relation type.
35    #[non_exhaustive]
36    AddProperty(RelationTypeAddPropertyArgs),
37    /// Removes a property from a relation type.
38    #[non_exhaustive]
39    RemoveProperty(RelationTypePropertyArgs),
40    /// Adds an extension to a relation type.
41    #[non_exhaustive]
42    AddExtension(RelationTypeAddExtensionArgs),
43    /// Removes an extension from a relation type.
44    #[non_exhaustive]
45    RemoveExtension(RelationExtensionTypeIdArgs),
46    /// Adds a component to a relation type.
47    #[non_exhaustive]
48    AddComponent(RelationComponentTypeIdArgs),
49    /// Removes a component from a relation type.
50    #[non_exhaustive]
51    RemoveComponent(RelationComponentTypeIdArgs),
52    /// Updates the description of a relation type.
53    #[non_exhaustive]
54    UpdateDescription(RelationTypeUpdateDescriptionArgs),
55    /// Prints the JSON Schema of relation types.
56    #[non_exhaustive]
57    JsonSchema,
58}