pub struct FieldInfo {
pub name: &'static str,
pub prompt: Option<&'static str>,
pub type_name: &'static str,
}Expand description
Metadata for a single survey field.
Fields§
§name: &'static strField name in the struct.
prompt: Option<&'static str>Optional custom prompt for this field.
type_name: &'static strType name for dispatching elicitation.
Trait Implementations§
impl Eq for FieldInfo
impl StructuralPartialEq for FieldInfo
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnwindSafe for FieldInfo
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