pub enum TagsCommand {
Provider(TagsProviderCommand),
Browse {
path: Option<String>,
filter: Option<String>,
include_properties: bool,
project: String,
from_export: Option<PathBuf>,
},
Read {
paths: Vec<String>,
project: String,
},
Write {
path: String,
value: String,
project: String,
},
Config(TagsConfigCommand),
Udt(TagsUdtCommand),
Alarms(TagsAlarmsCommand),
History(TagsHistoryCommand),
Export {
paths: Vec<String>,
output: Option<PathBuf>,
project: String,
},
Import {
file: PathBuf,
provider: String,
collision_policy: CollisionPolicy,
project: String,
},
}Variants§
Provider(TagsProviderCommand)
Manage tag providers (native config-resource REST — no deployed routes involved): list with tag counts + health, create a STANDARD provider, delete (guarded)
Browse
Browse tags as a tree (Property children filtered by
default) — providers appear at the root; needs the deployed
routes (ign webdev deploy) — or run fully OFFLINE against
an export via –from-export
Fields
Read
Read one or more tag values (quality and timestamp included) — needs the deployed routes
Fields
Write
Write a value to a tag — the value is parsed as a JSON scalar (number/bool/null); anything unparseable is sent as a string; arrays/objects refuse — needs the deployed routes
Fields
Config(TagsConfigCommand)
Tag CONFIGURATION CRUD (the surgical edit loop — JSON in, JSON out): get/create/edit/delete tag configs through the deployed tagConfig route; stringified values are re-parsed so agents see real JSON
Udt(TagsUdtCommand)
UDT types and definitions (recursive: parameters + nested children) — needs the deployed routes
Alarms(TagsAlarmsCommand)
Alarm operations: active status (with filters), journal history, acknowledge — needs the deployed routes
History(TagsHistoryCommand)
Tag history queries (historian-backed values) — needs the deployed routes; structurally safe on any rig (data requires a provisioned historian)
Export
Export tag subtrees to a JSON file (the bulk-transfer half — the gateway’s native interchange, JSON only)
Fields
Import
Import a JSON tag export into a target provider — abort (default) refuses on collisions; overwrite replaces them (destructive: requires –yes)
Fields
collision_policy: CollisionPolicyCollision policy: abort refuses when tags already exist (default); overwrite replaces them (destructive: requires –yes). merge is Designer-only (not a value)
Trait Implementations§
Source§impl Debug for TagsCommand
impl Debug for TagsCommand
Source§impl FromArgMatches for TagsCommand
impl FromArgMatches for TagsCommand
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 TagsCommand
impl Subcommand for TagsCommand
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