pub struct PackageSection {
pub name: String,
pub version: String,
pub targets: Option<TargetsSection>,
}Expand description
The [package] section of the manifest.
Fields§
§name: StringPackage name.
version: StringPackage version (semver).
targets: Option<TargetsSection>Supported compilation targets.
Trait Implementations§
Source§impl Clone for PackageSection
impl Clone for PackageSection
Source§fn clone(&self) -> PackageSection
fn clone(&self) -> PackageSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackageSection
impl Debug for PackageSection
Source§impl<'de> Deserialize<'de> for PackageSection
impl<'de> Deserialize<'de> for PackageSection
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
Auto Trait Implementations§
impl Freeze for PackageSection
impl RefUnwindSafe for PackageSection
impl Send for PackageSection
impl Sync for PackageSection
impl Unpin for PackageSection
impl UnsafeUnpin for PackageSection
impl UnwindSafe for PackageSection
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