pub struct FieldDefault {
pub path: String,
pub display: String,
}Expand description
Per-field default override. When a section knows a sensible default
that lives outside the config (e.g. AnthropicModelProvider::default_temperature()),
it builds a list of these and passes them to prompt_fields_under.
The prompt surfaces the default as ghost-text inside the input box
plus a “Default: X. Press Enter to accept.” line in the help blurb,
only when the field is unset in cfg.
Fields§
§path: String§display: StringTrait Implementations§
Source§impl Clone for FieldDefault
impl Clone for FieldDefault
Source§fn clone(&self) -> FieldDefault
fn clone(&self) -> FieldDefault
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 FieldDefault
impl RefUnwindSafe for FieldDefault
impl Send for FieldDefault
impl Sync for FieldDefault
impl Unpin for FieldDefault
impl UnsafeUnpin for FieldDefault
impl UnwindSafe for FieldDefault
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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