pub struct Dependency {
pub name: String,
pub type: String,
pub prerelease: bool,
pub requirement: Requirement,
pub version_requirements: Requirement,
}Expand description
!ruby/object:Gem::Dependency
Fields§
§name: String§type: String§prerelease: bool§requirement: Requirement§version_requirements: RequirementImplementations§
Source§impl Dependency
impl Dependency
pub fn development(name: impl Into<String>, requirement: (&str, &str)) -> Self
pub fn new( name: impl Into<String>, type: impl Into<String>, prerelease: bool, requirement: Requirement, version_requirements: Requirement, ) -> Self
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§impl Debug for Dependency
impl Debug for Dependency
Source§impl Default for Dependency
impl Default for Dependency
Source§impl<'de> Deserialize<'de> for Dependencywhere
Dependency: Default,
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Dependencywhere
Dependency: Default,
Available on crate feature
serde only.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 Eq for Dependency
Source§impl Hash for Dependency
impl Hash for Dependency
Source§impl PartialEq for Dependency
impl PartialEq for Dependency
Source§impl Serialize for Dependency
Available on crate feature serde only.
impl Serialize for Dependency
Available on crate feature
serde only.impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnsafeUnpin for Dependency
impl UnwindSafe for Dependency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.