pub enum ConfigOverrides {
None,
Flat(Vec<(String, String)>),
Json(Value),
}Expand description
Config overrides — either flat key-value pairs or nested JSON.
Variants§
None
Flat(Vec<(String, String)>)
Flat key-value pairs: [("model", "o4-mini")]
Json(Value)
Nested JSON object — recursively flattened to dot-notation.
Implementations§
Source§impl ConfigOverrides
impl ConfigOverrides
Sourcepub fn to_cli_pairs(&self) -> Vec<(String, String)>
pub fn to_cli_pairs(&self) -> Vec<(String, String)>
Flatten to CLI -c key=value pairs.
Trait Implementations§
Source§impl Clone for ConfigOverrides
impl Clone for ConfigOverrides
Source§fn clone(&self) -> ConfigOverrides
fn clone(&self) -> ConfigOverrides
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 ConfigOverrides
impl Debug for ConfigOverrides
Source§impl Default for ConfigOverrides
impl Default for ConfigOverrides
Source§fn default() -> ConfigOverrides
fn default() -> ConfigOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigOverrides
impl RefUnwindSafe for ConfigOverrides
impl Send for ConfigOverrides
impl Sync for ConfigOverrides
impl Unpin for ConfigOverrides
impl UnsafeUnpin for ConfigOverrides
impl UnwindSafe for ConfigOverrides
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more