Enum PromptPartKind
pub enum PromptPartKind {
System,
Developer,
User,
Assistant,
Tool,
Context,
Example,
Constraint,
OutputFormat,
Metadata,
}Variants§
Implementations§
§impl PromptPartKind
impl PromptPartKind
pub const ALL: &'static [PromptPartKind]
pub const fn as_str(self) -> &'static str
Trait Implementations§
§impl Clone for PromptPartKind
impl Clone for PromptPartKind
§fn clone(&self) -> PromptPartKind
fn clone(&self) -> PromptPartKind
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 PromptPartKind
impl Debug for PromptPartKind
§impl Display for PromptPartKind
impl Display for PromptPartKind
§impl FromStr for PromptPartKind
impl FromStr for PromptPartKind
§type Err = AiPromptError
type Err = AiPromptError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<PromptPartKind, <PromptPartKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PromptPartKind, <PromptPartKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PromptPartKind
impl Hash for PromptPartKind
§impl Ord for PromptPartKind
impl Ord for PromptPartKind
§impl PartialEq for PromptPartKind
impl PartialEq for PromptPartKind
§impl PartialOrd for PromptPartKind
impl PartialOrd for PromptPartKind
impl Copy for PromptPartKind
impl Eq for PromptPartKind
impl StructuralPartialEq for PromptPartKind
Auto Trait Implementations§
impl Freeze for PromptPartKind
impl RefUnwindSafe for PromptPartKind
impl Send for PromptPartKind
impl Sync for PromptPartKind
impl Unpin for PromptPartKind
impl UnsafeUnpin for PromptPartKind
impl UnwindSafe for PromptPartKind
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