pub struct ProjectManifest {
pub project: ProjectSection,
pub document: DocumentSection,
pub output: OutputSection,
pub dependencies: BTreeMap<String, String>,
}Expand description
Parsed mosaic.toml project manifest.
§Examples
use mos_packages::ProjectManifest;
let manifest: ProjectManifest = toml::from_str(
r#"
[project]
name = "demo"
version = "0.1.0"
entry = "main.mos"
"#,
)?;
assert_eq!(manifest.project.name, "demo");Fields§
§project: ProjectSection§document: DocumentSection§output: OutputSection§dependencies: BTreeMap<String, String>Implementations§
Trait Implementations§
Source§impl Clone for ProjectManifest
impl Clone for ProjectManifest
Source§fn clone(&self) -> ProjectManifest
fn clone(&self) -> ProjectManifest
Returns a duplicate 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 ProjectManifest
impl Debug for ProjectManifest
Source§impl<'de> Deserialize<'de> for ProjectManifest
impl<'de> Deserialize<'de> for ProjectManifest
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 ProjectManifest
impl RefUnwindSafe for ProjectManifest
impl Send for ProjectManifest
impl Sync for ProjectManifest
impl Unpin for ProjectManifest
impl UnsafeUnpin for ProjectManifest
impl UnwindSafe for ProjectManifest
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