pub struct Build {
label: String,
build_file: Utf8PathBuf,
target_kind: TargetKind,
runnables: Vec<Runnable>,
}
Fields§
§label: String
The name associated with this crate.
This is determined by the build system that produced
the rust-project.json
in question. For instance, if bazel were used,
the label might be something like //ide/rust/rust-analyzer:rust-analyzer
.
Do not attempt to parse the contents of this string; it is a build system-specific
identifier similar to Crate::display_name
.
build_file: Utf8PathBuf
Path corresponding to the build system-specific file defining the crate.
target_kind: TargetKind
The kind of target.
Examples (non-exhaustively) include TargetKind::Bin
, TargetKind::Lib
,
and TargetKind::Test
. This information is used to determine what sort
of runnable codelens to provide, if any.
runnables: Vec<Runnable>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more