pub struct SimpleDependency {
pub name: String,
pub version: String,
pub is_dev: bool,
pub is_optional: bool,
}Fields§
§name: String§version: String§is_dev: bool§is_optional: boolTrait Implementations§
source§impl Clone for SimpleDependency
impl Clone for SimpleDependency
source§fn clone(&self) -> SimpleDependency
fn clone(&self) -> SimpleDependency
Returns a copy of the value. Read more
1.0.0 · 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 SimpleDependency
impl Debug for SimpleDependency
source§impl<'de> Deserialize<'de> for SimpleDependency
impl<'de> Deserialize<'de> for SimpleDependency
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
source§impl Ord for SimpleDependency
impl Ord for SimpleDependency
source§fn cmp(&self, other: &SimpleDependency) -> Ordering
fn cmp(&self, other: &SimpleDependency) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SimpleDependency> for SimpleDependency
impl PartialEq<SimpleDependency> for SimpleDependency
source§fn eq(&self, other: &SimpleDependency) -> bool
fn eq(&self, other: &SimpleDependency) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SimpleDependency> for SimpleDependency
impl PartialOrd<SimpleDependency> for SimpleDependency
source§fn partial_cmp(&self, other: &SimpleDependency) -> Option<Ordering>
fn partial_cmp(&self, other: &SimpleDependency) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for SimpleDependency
impl Serialize for SimpleDependency
impl Eq for SimpleDependency
impl StructuralEq for SimpleDependency
impl StructuralPartialEq for SimpleDependency
Auto Trait Implementations§
impl RefUnwindSafe for SimpleDependency
impl Send for SimpleDependency
impl Sync for SimpleDependency
impl Unpin for SimpleDependency
impl UnwindSafe for SimpleDependency
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