pub struct PromptArgument {
pub name: String,
pub description: Option<String>,
pub required: Option<bool>,
}
Expand description
Argument for a prompt
Fieldsยง
ยงname: String
Name of the argument
description: Option<String>
Description of the argument
required: Option<bool>
Whether this argument is required
Trait Implementationsยง
Sourceยงimpl Clone for PromptArgument
impl Clone for PromptArgument
Sourceยงfn clone(&self) -> PromptArgument
fn clone(&self) -> PromptArgument
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 moreSourceยงimpl Debug for PromptArgument
impl Debug for PromptArgument
Sourceยงimpl<'de> Deserialize<'de> for PromptArgument
impl<'de> Deserialize<'de> for PromptArgument
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Freeze for PromptArgument
impl RefUnwindSafe for PromptArgument
impl Send for PromptArgument
impl Sync for PromptArgument
impl Unpin 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