Struct cairo_lang_project::ProjectConfig 
source · pub struct ProjectConfig {
    pub base_path: PathBuf,
    pub corelib: Option<Directory>,
    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 location and of its dependency crates.
Fields§
§base_path: PathBuf§corelib: Option<Directory>§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 for ProjectConfig
 
impl PartialEq 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 ==.impl Eq for ProjectConfig
impl StructuralEq for ProjectConfig
impl StructuralPartialEq for ProjectConfig
Auto Trait Implementations§
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.