pub struct ManifoldConfig {
pub repo: RepoConfig,
pub workspace: WorkspaceConfig,
pub merge: MergeConfig,
}Expand description
Top-level Manifold repository configuration.
Parsed from .manifold/config.toml. Missing fields use sensible defaults.
Missing file → all defaults (no error).
Fields§
§repo: RepoConfigRepository-level settings.
workspace: WorkspaceConfigWorkspace backend settings.
merge: MergeConfigMerge settings.
Implementations§
Source§impl ManifoldConfig
impl ManifoldConfig
Sourcepub fn load(path: &Path) -> Result<Self, ConfigError>
pub fn load(path: &Path) -> Result<Self, ConfigError>
Load configuration from a TOML file.
- If the file does not exist, returns all defaults (not an error).
- If the file exists but contains invalid TOML or unknown fields,
returns a
ConfigErrorwith line-level detail.
§Errors
Returns ConfigError on I/O errors (other than not-found) or parse errors.
Trait Implementations§
Source§impl Clone for ManifoldConfig
impl Clone for ManifoldConfig
Source§fn clone(&self) -> ManifoldConfig
fn clone(&self) -> ManifoldConfig
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 ManifoldConfig
impl Debug for ManifoldConfig
Source§impl Default for ManifoldConfig
impl Default for ManifoldConfig
Source§fn default() -> ManifoldConfig
fn default() -> ManifoldConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManifoldConfig
impl<'de> Deserialize<'de> for ManifoldConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ManifoldConfig
impl PartialEq for ManifoldConfig
impl Eq for ManifoldConfig
impl StructuralPartialEq for ManifoldConfig
Auto Trait Implementations§
impl Freeze for ManifoldConfig
impl RefUnwindSafe for ManifoldConfig
impl Send for ManifoldConfig
impl Sync for ManifoldConfig
impl Unpin for ManifoldConfig
impl UnsafeUnpin for ManifoldConfig
impl UnwindSafe for ManifoldConfig
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.