Struct cargo::util::toml::TomlPackage
source · pub struct TomlPackage { /* private fields */ }
Expand description
Represents the package
/project
sections of a Cargo.toml
.
Note that the order of the fields matters, since this is the order they
are serialized to a TOML file. For example, you cannot have values after
the field metadata
, since it is a table and values cannot appear after
tables.
Implementations§
source§impl TomlPackage
impl TomlPackage
pub fn to_package_id( &self, source_id: SourceId, version: Version ) -> CargoResult<PackageId>
Trait Implementations§
source§impl Clone for TomlPackage
impl Clone for TomlPackage
source§fn clone(&self) -> TomlPackage
fn clone(&self) -> TomlPackage
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 TomlPackage
impl Debug for TomlPackage
source§impl<'de> Deserialize<'de> for TomlPackage
impl<'de> Deserialize<'de> for TomlPackage
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