Skip to main content

DaCommands

Enum DaCommands 

Source
pub enum DaCommands {
    Engines,
    Appbundles,
    AppbundleCreate {
        id: Option<String>,
        engine: Option<String>,
        description: Option<String>,
    },
    AppbundleDelete {
        id: String,
    },
    AppbundleUpload {
        id: String,
        file: PathBuf,
        engine: String,
        description: Option<String>,
    },
    Activities,
    ActivityCreate {
        file: Option<PathBuf>,
        id: Option<String>,
        engine: Option<String>,
        appbundle: Option<String>,
        command: Option<String>,
        description: Option<String>,
    },
    ActivityDelete {
        id: String,
    },
    Run {
        activity: String,
        input: Vec<(String, String)>,
        out_arg: Vec<(String, String)>,
        wait: bool,
    },
    Workitems,
    Status {
        workitem_id: String,
        wait: bool,
        download: bool,
        output_dir: Option<PathBuf>,
    },
}

Variants§

§

Engines

List available engines

§

Appbundles

List app bundles

§

AppbundleCreate

Create an app bundle

Fields

§id: Option<String>

App bundle ID

§engine: Option<String>

Engine ID (e.g., Autodesk.AutoCAD+24)

§description: Option<String>

Description

§

AppbundleDelete

Delete an app bundle

Fields

§id: String

App bundle ID to delete

§

AppbundleUpload

Upload a .zip archive for an app bundle

Fields

§id: String

App bundle ID (must already exist – use appbundle-create first)

§file: PathBuf

Path to the .zip archive to upload

§engine: String

Engine ID (e.g., Autodesk.AutoCAD+24)

§description: Option<String>

Description for the new version

§

Activities

List activities

§

ActivityCreate

Create an activity from JSON or YAML definition

Fields

§file: Option<PathBuf>

Path to JSON or YAML activity definition file (use - for stdin, parsed as YAML)

§id: Option<String>

Activity ID (required if not using –file)

§engine: Option<String>

Engine ID (required if not using –file)

§appbundle: Option<String>

App bundle ID to use (required if not using –file)

§command: Option<String>

Command line (required if not using –file)

§description: Option<String>

Description

§

ActivityDelete

Delete an activity

Fields

§id: String

Activity ID to delete

§

Run

Submit a work item to run an activity

Fields

§activity: String

Activity ID (fully qualified, e.g., owner.activity+alias)

§input: Vec<(String, String)>

Input arguments as key=value pairs (use @file.dwg for file inputs)

§out_arg: Vec<(String, String)>

Output arguments as key=value pairs (local file paths)

§wait: bool

Wait for completion and download results

§

Workitems

List recent workitems

§

Status

Check work item status

Fields

§workitem_id: String

Work item ID

§wait: bool

Wait for completion

§download: bool

Download outputs on completion

§output_dir: Option<PathBuf>

Output directory for downloads

Implementations§

Source§

impl DaCommands

Source

pub async fn execute( self, client: &DesignAutomationClient, output_format: OutputFormat, ) -> Result<()>

Trait Implementations§

Source§

impl Debug for DaCommands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for DaCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for DaCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more