pub struct WorkspaceConfig { /* private fields */ }Expand description
A validated workspace configuration parsed from the root guild.toml.
Implementations§
Source§impl WorkspaceConfig
impl WorkspaceConfig
Sourcepub fn from_file(path: &Path) -> Result<Self, ConfigError>
pub fn from_file(path: &Path) -> Result<Self, ConfigError>
Parse a workspace configuration from the given guild.toml path.
Sourcepub fn from_str(content: &str, root: PathBuf) -> Result<Self, ConfigError>
pub fn from_str(content: &str, root: PathBuf) -> Result<Self, ConfigError>
Parse a workspace configuration from a TOML string (for testing).
pub fn name(&self) -> &str
pub fn project_patterns(&self) -> &[String]
pub fn root(&self) -> &Path
Trait Implementations§
Source§impl Clone for WorkspaceConfig
impl Clone for WorkspaceConfig
Source§fn clone(&self) -> WorkspaceConfig
fn clone(&self) -> WorkspaceConfig
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 moreAuto Trait Implementations§
impl Freeze for WorkspaceConfig
impl RefUnwindSafe for WorkspaceConfig
impl Send for WorkspaceConfig
impl Sync for WorkspaceConfig
impl Unpin for WorkspaceConfig
impl UnsafeUnpin for WorkspaceConfig
impl UnwindSafe for WorkspaceConfig
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