pub struct WorkspaceConfig {
pub raz: Option<RazConfig>,
pub providers_config: Option<ProviderConfig>,
pub filters: Option<FilterConfig>,
pub ui: Option<UiConfig>,
pub commands: Option<Vec<CommandConfig>>,
pub overrides: Option<OverrideCollection>,
pub extends: Option<PathBuf>,
pub path: PathBuf,
}
Fields§
§raz: Option<RazConfig>
§providers_config: Option<ProviderConfig>
§filters: Option<FilterConfig>
§ui: Option<UiConfig>
§commands: Option<Vec<CommandConfig>>
§overrides: Option<OverrideCollection>
§extends: Option<PathBuf>
§path: PathBuf
Implementations§
Source§impl WorkspaceConfig
impl WorkspaceConfig
pub fn new(workspace_path: PathBuf) -> WorkspaceConfig
pub fn load( workspace_path: impl AsRef<Path>, ) -> Result<Option<WorkspaceConfig>, ConfigError>
pub fn save(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
pub fn clear_cache()
pub fn invalidate_cache_for(path: &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 moreSource§impl Debug for WorkspaceConfig
impl Debug for WorkspaceConfig
Source§impl<'de> Deserialize<'de> for WorkspaceConfig
impl<'de> Deserialize<'de> for WorkspaceConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for WorkspaceConfig
impl Serialize for WorkspaceConfig
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 WorkspaceConfig
impl RefUnwindSafe for WorkspaceConfig
impl Send for WorkspaceConfig
impl Sync for WorkspaceConfig
impl Unpin 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