Skip to main content

TranslateCommands

Enum TranslateCommands 

Source
pub enum TranslateCommands {
    Start {
        urn: Option<String>,
        format: Option<String>,
        root_filename: Option<String>,
        wait: bool,
        region: String,
        force: bool,
    },
    Status {
        urn: String,
        wait: bool,
    },
    Manifest {
        urn: String,
    },
    Derivatives {
        urn: String,
        format: Option<String>,
    },
    Download {
        urn: String,
        format: Option<String>,
        guid: Option<String>,
        out_dir: Option<PathBuf>,
        all: bool,
    },
    Metadata {
        urn: String,
        region: Option<String>,
        output: String,
    },
    Tree {
        urn: String,
        guid: String,
        region: Option<String>,
        output: String,
    },
    Properties {
        urn: String,
        guid: String,
        object_id: Option<i64>,
        region: Option<String>,
        output: String,
    },
    QueryProperties {
        urn: String,
        guid: String,
        filter: String,
        fields: Option<String>,
        region: Option<String>,
        output: String,
    },
    Preset(PresetCommands),
}

Variants§

§

Start

Start a translation job

Fields

§urn: Option<String>

Base64-encoded URN of the source file

§format: Option<String>

Output format (svf2, svf, obj, stl, step, iges, ifc)

§root_filename: Option<String>

Root filename (for ZIP files with multiple design files)

§wait: bool

Wait for translation to complete (polls until done)

§region: String

APS data center region (US, EMEA, AUS, CAN, DEU, IND, JPN, GBR)

§force: bool

Force re-translation by deleting existing manifest. Note: Prior versions always forced re-translation. The default is now to preserve existing manifests.

§

Status

Check translation status

Fields

§urn: String

Base64-encoded URN of the source file

§wait: bool

Wait for translation to complete

§

Manifest

Get translation manifest (available derivatives)

Fields

§urn: String

Base64-encoded URN of the source file

§

Derivatives

List downloadable derivatives

Fields

§urn: String

Base64-encoded URN of the source file

§format: Option<String>

Filter by format (obj, stl, step, etc.)

§

Download

Download translated derivatives

Fields

§urn: String

Base64-encoded URN of the source file

§format: Option<String>

Download by format (obj, stl, step, etc.) - downloads all matching

§guid: Option<String>

Download specific derivative by GUID

§out_dir: Option<PathBuf>

Output directory (defaults to current directory)

§all: bool

Download all available derivatives

§

Metadata

List model views/viewables (metadata)

Fields

§urn: String

Base64-encoded URN of the source file

§region: Option<String>

APS data center region (US, EMEA, AUS, CAN, DEU, IND, JPN, GBR)

§output: String

Output format

§

Tree

Get object tree hierarchy for a model view

Fields

§urn: String

Base64-encoded URN of the source file

§guid: String

Model view GUID (from metadata command)

§region: Option<String>

APS data center region (US, EMEA, AUS, CAN, DEU, IND, JPN, GBR)

§output: String

Output format

§

Properties

Get properties for a model view

Fields

§urn: String

Base64-encoded URN of the source file

§guid: String

Model view GUID (from metadata command)

§object_id: Option<i64>

Filter by object ID

§region: Option<String>

APS data center region (US, EMEA, AUS, CAN, DEU, IND, JPN, GBR)

§output: String

Output format

§

QueryProperties

Query specific properties by object IDs

Fields

§urn: String

Base64-encoded URN of the source file

§guid: String

Model view GUID (from metadata command)

§filter: String

Comma-separated object IDs to filter (e.g., “1,2,3”)

§fields: Option<String>

Comma-separated field names to return

§region: Option<String>

APS data center region (US, EMEA, AUS, CAN, DEU, IND, JPN, GBR)

§output: String

Output format

§

Preset(PresetCommands)

Manage translation presets

Implementations§

Source§

impl TranslateCommands

Source

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

Trait Implementations§

Source§

impl Debug for TranslateCommands

Source§

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

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

impl FromArgMatches for TranslateCommands

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 TranslateCommands

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