pub struct SidecarConfig {
pub shard_by: ShardBy,
pub budget: BudgetConfig,
}Expand description
Top-level sidecar config.
Fields§
§shard_by: ShardBy§budget: BudgetConfigImplementations§
Source§impl SidecarConfig
impl SidecarConfig
Sourcepub fn load_from_project(project_root: &Path) -> Self
pub fn load_from_project(project_root: &Path) -> Self
Read <project_root>/.asd/config.toml if present. Missing
file, parse errors, or unknown values all fall through to
defaults — config is advisory, not load-bearing.
Sourcepub fn load_from_file(path: &Path) -> Self
pub fn load_from_file(path: &Path) -> Self
Lower-level: read an explicit config path. Test-friendly.
Trait Implementations§
Source§impl Clone for SidecarConfig
impl Clone for SidecarConfig
Source§impl Debug for SidecarConfig
impl Debug for SidecarConfig
Auto Trait Implementations§
impl Freeze for SidecarConfig
impl RefUnwindSafe for SidecarConfig
impl Send for SidecarConfig
impl Sync for SidecarConfig
impl Unpin for SidecarConfig
impl UnsafeUnpin for SidecarConfig
impl UnwindSafe for SidecarConfig
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