pub struct VersionSpec<'a> {
pub name: &'a str,
pub version: &'a str,
pub kind: ExecutableKind,
pub language: Language,
pub product: Option<&'a str>,
pub capabilities: &'a [&'a str],
pub build: BuildInfo<'a>,
}Expand description
Declarative spec of what a binary should report. Keeps per-call argument
counts small enough for clippy::too_many_arguments.
Fields§
§name: &'a strBinary name (argv[0], no .exe).
version: &'a strSemver.
kind: ExecutableKindWhat this binary is.
language: LanguageWhich language runtime it uses.
product: Option<&'a str>Product id (the owning product’s manifest product.id).
capabilities: &'a [&'a str]Declared capabilities (LSP features, transports, etc.).
build: BuildInfo<'a>Build-time metadata from build.rs.
Trait Implementations§
Source§impl<'a> Clone for VersionSpec<'a>
impl<'a> Clone for VersionSpec<'a>
Source§fn clone(&self) -> VersionSpec<'a>
fn clone(&self) -> VersionSpec<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for VersionSpec<'a>
impl<'a> RefUnwindSafe for VersionSpec<'a>
impl<'a> Send for VersionSpec<'a>
impl<'a> Sync for VersionSpec<'a>
impl<'a> Unpin for VersionSpec<'a>
impl<'a> UnsafeUnpin for VersionSpec<'a>
impl<'a> UnwindSafe for VersionSpec<'a>
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