pub struct Field {
pub name: &'static str,
pub description: &'static str,
pub options: &'static [(&'static str, &'static str)],
pub doc_link: &'static str,
}Expand description
Static metadata for one interactive question.
Constants live next to the call sites (e.g. init/container.rs) and are
passed by reference into PromptSource methods.
Fields§
§name: &'static strUser-facing question, e.g. "Pick a provider style".
description: &'static strLong-form explanation shown when the user types ?.
options: &'static [(&'static str, &'static str)]Discrete choices as (value, blurb) pairs. Empty for free-text fields.
doc_link: &'static strPath under the repo root, e.g. "doc/concepts/llm-providers.md".
Help output renders this as a public documentation URL.
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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