Struct ligen::generator::Arguments[][src]

pub struct Arguments {
    pub crate_name: String,
    pub build_type: BuildType,
    pub target_dir: PathBuf,
    pub manifest_path: PathBuf,
    pub workspace_path: Option<PathBuf>,
    pub workspace_member_package_id: Option<String>,
}
Expand description

Arguments passed from cargo-ligen.

Fields

crate_name: String

The name of the crate

build_type: BuildType

The build type.

target_dir: PathBuf

The build target directory.

manifest_path: PathBuf

The Cargo.toml manifest path passed with --target-dir.

workspace_path: Option<PathBuf>

The Cargo.toml workspace manifest passed with --manifest-path.

workspace_member_package_id: Option<String>

Workspace member to build passed with --package or -p.

Implementations

Generates a JSON representation of Arguments in CARGO_LIGEN_ARGUMENTS.

Parses the JSON representation from CARGO_LIGEN_ARGUMENTS.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.