Struct blaze_devkit::workspace::Workspace
source · pub struct Workspace { /* private fields */ }Expand description
Main workspace configuration object.
Implementations§
source§impl Workspace
impl Workspace
sourcepub fn from_configuration_and_metadata<P>(
source: (P, ConfigurationFileFormat),
configuration: WorkspaceConfiguration,
) -> Workspace
pub fn from_configuration_and_metadata<P>( source: (P, ConfigurationFileFormat), configuration: WorkspaceConfiguration, ) -> Workspace
Create a Workspace from configuration file metadata and deserialized content.
pub fn root(&self) -> &Path
pub fn configuration_file_path(&self) -> &Path
pub fn configuration_file_format(&self) -> ConfigurationFileFormat
pub fn name(&self) -> &str
pub fn projects(&self) -> &BTreeMap<String, ProjectRef>
pub fn settings(&self) -> &GlobalSettings
Trait Implementations§
source§impl<'de> Deserialize<'de> for Workspace
impl<'de> Deserialize<'de> for Workspace
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Workspace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Workspace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Workspace
impl Serialize for Workspace
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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