pub struct CargoSpec {
pub file: Option<String>,
pub packages: Vec<String>,
}Expand description
Cargo package spec. Supports both list form (cargo: [bat, ripgrep])
and object form (cargo: { file: Cargo.toml, packages: [...] }).
Fields§
§file: Option<String>§packages: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CargoSpec
impl<'de> Deserialize<'de> for CargoSpec
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
impl StructuralPartialEq for CargoSpec
Auto Trait Implementations§
impl Freeze for CargoSpec
impl RefUnwindSafe for CargoSpec
impl Send for CargoSpec
impl Sync for CargoSpec
impl Unpin for CargoSpec
impl UnsafeUnpin for CargoSpec
impl UnwindSafe for CargoSpec
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