pub struct Package {
pub name: String,
pub version: String,
pub description: Option<String>,
pub authors: Vec<String>,
pub entry: String,
}Expand description
Package metadata from the [package] section.
Contains identifying information about the package used for building and publishing.
Fields§
§name: StringPackage name (used for registry publishing).
version: StringSemantic version string. Defaults to “0.1.0”.
description: Option<String>Short description of the package.
List of package authors.
entry: StringEntry point file path. Defaults to “src/main.lg”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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