Struct cairo_lang_project::ProjectConfig
source · pub struct ProjectConfig {
pub base_path: PathBuf,
pub content: ProjectConfigContent,
}Expand description
Cairo project config, including its file content and metadata about the file. This file is expected to be at a root of a crate and specify the crate name and locaiton and of its dependency crates.
Fields§
§base_path: PathBuf§content: ProjectConfigContentImplementations§
source§impl ProjectConfig
impl ProjectConfig
pub fn from_directory(directory: &Path) -> Result<Self, DeserializationError>
pub fn from_file(filename: &Path) -> Result<Self, DeserializationError>
Trait Implementations§
source§impl Clone for ProjectConfig
impl Clone for ProjectConfig
source§fn clone(&self) -> ProjectConfig
fn clone(&self) -> ProjectConfig
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 ProjectConfig
impl Debug for ProjectConfig
source§impl PartialEq<ProjectConfig> for ProjectConfig
impl PartialEq<ProjectConfig> for ProjectConfig
source§fn eq(&self, other: &ProjectConfig) -> bool
fn eq(&self, other: &ProjectConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.