Enum PromptInstructionKind
pub enum PromptInstructionKind {
Task,
Constraint,
Style,
Safety,
Role,
Format,
Context,
Example,
ToolUse,
Refusal,
Custom,
}Variants§
Implementations§
§impl PromptInstructionKind
impl PromptInstructionKind
pub const ALL: &'static [PromptInstructionKind]
pub const fn as_str(self) -> &'static str
Trait Implementations§
§impl Clone for PromptInstructionKind
impl Clone for PromptInstructionKind
§fn clone(&self) -> PromptInstructionKind
fn clone(&self) -> PromptInstructionKind
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 more§impl Debug for PromptInstructionKind
impl Debug for PromptInstructionKind
§impl Display for PromptInstructionKind
impl Display for PromptInstructionKind
§impl FromStr for PromptInstructionKind
impl FromStr for PromptInstructionKind
§type Err = AiPromptError
type Err = AiPromptError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<PromptInstructionKind, <PromptInstructionKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PromptInstructionKind, <PromptInstructionKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PromptInstructionKind
impl Hash for PromptInstructionKind
§impl Ord for PromptInstructionKind
impl Ord for PromptInstructionKind
§fn cmp(&self, other: &PromptInstructionKind) -> Ordering
fn cmp(&self, other: &PromptInstructionKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for PromptInstructionKind
impl PartialEq for PromptInstructionKind
§impl PartialOrd for PromptInstructionKind
impl PartialOrd for PromptInstructionKind
impl Copy for PromptInstructionKind
impl Eq for PromptInstructionKind
impl StructuralPartialEq for PromptInstructionKind
Auto Trait Implementations§
impl Freeze for PromptInstructionKind
impl RefUnwindSafe for PromptInstructionKind
impl Send for PromptInstructionKind
impl Sync for PromptInstructionKind
impl Unpin for PromptInstructionKind
impl UnsafeUnpin for PromptInstructionKind
impl UnwindSafe for PromptInstructionKind
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