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