pub struct Prompt {
pub id: Id,
pub kind: PromptKind,
pub title: String,
pub description: Option<String>,
pub placeholder: Option<String>,
pub default: Option<Answer>,
pub options: Vec<String>,
pub constraints: Constraints,
pub document: Option<Box<DocumentPrompt>>,
}Fields§
§id: Id§kind: PromptKind§title: String§description: Option<String>§placeholder: Option<String>§default: Option<Answer>§options: Vec<String>§constraints: Constraints§document: Option<Box<DocumentPrompt>>Trait Implementations§
Auto Trait Implementations§
impl Forget for Prompt
impl Freeze for Prompt
impl Move for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnsafeUnpin for Prompt
impl UnwindSafe for Prompt
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