pub struct BuildTarget {
    pub id: BuildTargetIdentifier,
    pub display_name: Option<String>,
    pub base_directory: Option<String>,
    pub tags: Vec<BuildTargetTag>,
    pub capabilities: BuildTargetCapabilities,
    pub language_ids: Vec<Language>,
    pub dependencies: Vec<BuildTargetIdentifier>,
}
Expand description

Build target contains metadata about an artifact (for example library, test, or binary artifact)

Fields

id: BuildTargetIdentifier

The target’s unique identifier

display_name: Option<String>

A human readable name for this target. May be presented in the user interface. Should be unique if possible. The id.uri is used if None.

base_directory: Option<String>

The directory where this target belongs to. Multiple build targets are allowed to map to the same base directory, and a build target is not required to have a base directory. A base directory does not determine the sources of a target, see “buildTarget/sources”.

tags: Vec<BuildTargetTag>

Free-form string tags to categorize or label this build target. For example, can be used by the client to:

  • customize how the target should be translated into the client’s project model.
  • group together different but related targets in the user interface.
  • display icons or colors in the user interface. Pre-defined tags are listed in BuildTargetTag but clients and servers are free to define new tags for custom purposes.
capabilities: BuildTargetCapabilities

The capabilities of this build target.

language_ids: Vec<Language>

The set of languages that this target contains. The ID string for each language is defined in the LSP.

dependencies: Vec<BuildTargetIdentifier>

The direct upstream build target dependencies of this build target

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.