pub struct DepKindInfoBuilder { /* private fields */ }Expand description
Builder for DepKindInfo.
Implementations§
Source§impl DepKindInfoBuilder
impl DepKindInfoBuilder
Sourcepub fn kind<VALUE: Into<DependencyKind>>(self, value: VALUE) -> Self
pub fn kind<VALUE: Into<DependencyKind>>(self, value: VALUE) -> Self
The kind of dependency.
Sourcepub fn target<VALUE: Into<Option<Platform>>>(self, value: VALUE) -> Self
pub fn target<VALUE: Into<Option<Platform>>>(self, value: VALUE) -> Self
The target platform for the dependency.
This is None if it is not a target dependency.
Use the Display trait to access the contents.
By default all platform dependencies are included in the resolve
graph. Use Cargo’s --filter-platform flag if you only want to
include dependencies for a specific platform.
Sourcepub fn build(self) -> Result<DepKindInfo, DepKindInfoBuilderError>
pub fn build(self) -> Result<DepKindInfo, DepKindInfoBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepKindInfoBuilder
impl RefUnwindSafe for DepKindInfoBuilder
impl Send for DepKindInfoBuilder
impl Sync for DepKindInfoBuilder
impl Unpin for DepKindInfoBuilder
impl UnwindSafe for DepKindInfoBuilder
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