pub struct Recommendation {
pub kind: Kind,
pub manager: Option<Manager>,
pub manager_present: bool,
pub channel: Channel,
pub mode: Mode,
pub file: Option<String>,
pub fragments: Vec<Fragment>,
pub seed: Option<Seed>,
pub command: Option<String>,
pub reason: Option<&'static str>,
pub freshness: String,
}Expand description
One way the dependency can land.
Fields§
§kind: Kinddev or prod.
manager: Option<Manager>The manager, for a dev dependency.
manager_present: boolWhether the target already carries the manager’s file.
channel: ChannelThe channel.
mode: Modefragment, native, or manual.
file: Option<String>The manager file the fragments go into, for a dev dependency.
fragments: Vec<Fragment>The fragments, in application order.
seed: Option<Seed>The seed, where the manager file is absent and the pair renders one.
command: Option<String>The native command, for a prod dependency.
reason: Option<&'static str>The manual reason.
freshness: StringThe manager’s own update verb.
Trait Implementations§
Source§impl Clone for Recommendation
impl Clone for Recommendation
Source§fn clone(&self) -> Recommendation
fn clone(&self) -> Recommendation
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 Recommendation
impl Debug for Recommendation
Auto Trait Implementations§
impl Freeze for Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnsafeUnpin for Recommendation
impl UnwindSafe for Recommendation
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