Enum forc_pkg::manifest::Dependency
source · pub enum Dependency {
Simple(String),
Detailed(DependencyDetails),
}
Variants§
Simple(String)
In the simple format, only a version is specified, eg.
package = "<version>"
Detailed(DependencyDetails)
The simple format is equivalent to a detailed dependency
specifying only a version, eg.
package = { version = "<version>" }
Implementations§
Trait Implementations§
source§impl Clone for Dependency
impl Clone for Dependency
source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
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 Dependency
impl Debug for Dependency
source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
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