pub struct DescriptorRootSelector {
pub package_id: String,
pub target_name: String,
pub target_kinds: BTreeSet<String>,
pub role: ArtifactRole,
pub artifact_path: Option<PathBuf>,
}Expand description
Exact Cargo root selected from the descriptor invocation’s JSON messages.
Fields§
§package_id: StringExact Cargo package ID from a compiler-artifact message.
target_name: StringExact target name.
target_kinds: BTreeSet<String>Exact normalized Cargo target-kind set.
role: ArtifactRoleLink-manifest role for this selected root.
artifact_path: Option<PathBuf>Exact Cargo-enumerated root filename.
This may be omitted only when Cargo reported exactly one usable executable or filename for the selected artifact.
Trait Implementations§
Source§impl Clone for DescriptorRootSelector
impl Clone for DescriptorRootSelector
Source§fn clone(&self) -> DescriptorRootSelector
fn clone(&self) -> DescriptorRootSelector
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 moreSource§impl Debug for DescriptorRootSelector
impl Debug for DescriptorRootSelector
impl Eq for DescriptorRootSelector
Source§impl PartialEq for DescriptorRootSelector
impl PartialEq for DescriptorRootSelector
impl StructuralPartialEq for DescriptorRootSelector
Auto Trait Implementations§
impl Forget for DescriptorRootSelector
impl Freeze for DescriptorRootSelector
impl Move for DescriptorRootSelector
impl RefUnwindSafe for DescriptorRootSelector
impl Send for DescriptorRootSelector
impl Sync for DescriptorRootSelector
impl Unpin for DescriptorRootSelector
impl UnsafeUnpin for DescriptorRootSelector
impl UnwindSafe for DescriptorRootSelector
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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