pub struct Candidate {
pub package: String,
pub description: String,
pub version: String,
pub origin: String,
pub actions: Actions,
}Expand description
Potential candidate for a command.
Fields§
§package: StringName of the package/command that provides “command” to be found
description: StringDescription of the package/command
version: StringVersion of the package/command
origin: StringOrigin of the package/command
actions: ActionsActions available on this candidate
Trait Implementations§
source§impl<'de> Deserialize<'de> for Candidate
impl<'de> Deserialize<'de> for Candidate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnwindSafe for Candidate
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