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