pub struct PackageConfig {
pub name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
}Expand description
Package manifest metadata ().
Optional [package] section that marks a project as a reusable,
publishable package. All fields are optional at parse time so that a
partial/invalid manifest still deserializes; validate_package enforces
the required fields (name, version) and version format with clear errors.
Unknown fields are allowed (forward-compatible with future manifest keys
such as authors, license, repository).
Fields§
§name: Option<String>§version: Option<String>§description: Option<String>Trait Implementations§
Source§impl Clone for PackageConfig
impl Clone for PackageConfig
Source§impl Debug for PackageConfig
impl Debug for PackageConfig
Source§impl Default for PackageConfig
impl Default for PackageConfig
Source§impl<'de> Deserialize<'de> for PackageConfig
impl<'de> Deserialize<'de> for PackageConfig
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 PartialEq for PackageConfig
impl PartialEq for PackageConfig
Source§impl Serialize for PackageConfig
impl Serialize for PackageConfig
impl StructuralPartialEq for PackageConfig
Auto Trait Implementations§
impl Freeze for PackageConfig
impl RefUnwindSafe for PackageConfig
impl Send for PackageConfig
impl Sync for PackageConfig
impl Unpin for PackageConfig
impl UnsafeUnpin for PackageConfig
impl UnwindSafe for PackageConfig
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