pub struct PromptArgDef {
pub name: String,
pub description: String,
pub required: bool,
}Expand description
Argument definition for a prompt template.
Fields§
§name: String§description: String§required: boolImplementations§
Trait Implementations§
Source§impl Clone for PromptArgDef
impl Clone for PromptArgDef
Source§fn clone(&self) -> PromptArgDef
fn clone(&self) -> PromptArgDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PromptArgDef
impl RefUnwindSafe for PromptArgDef
impl Send for PromptArgDef
impl Sync for PromptArgDef
impl Unpin for PromptArgDef
impl UnsafeUnpin for PromptArgDef
impl UnwindSafe for PromptArgDef
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