pub struct PromptArgument {
pub name: String,
pub description: Option<String>,
pub required: bool,
}Expand description
One argument of a prompt, from a field of its arguments type.
Fields§
§name: String§description: Option<String>§required: boolTrait Implementations§
Source§impl Clone for PromptArgument
impl Clone for PromptArgument
Source§impl Debug for PromptArgument
impl Debug for PromptArgument
impl Eq for PromptArgument
Source§impl PartialEq for PromptArgument
impl PartialEq for PromptArgument
Source§impl Serialize for PromptArgument
impl Serialize for PromptArgument
impl StructuralPartialEq for PromptArgument
Auto Trait Implementations§
impl Forget for PromptArgument
impl Freeze for PromptArgument
impl RefUnwindSafe for PromptArgument
impl Send for PromptArgument
impl Sync for PromptArgument
impl Unpin for PromptArgument
impl UnsafeUnpin for PromptArgument
impl UnwindSafe for PromptArgument
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.