Enum AiContextSourceKind
pub enum AiContextSourceKind {
UserProvided,
SystemProvided,
Retrieved,
ToolGenerated,
Memory,
Web,
File,
Database,
Api,
Synthetic,
Unknown,
}Variants§
Implementations§
§impl AiContextSourceKind
impl AiContextSourceKind
pub const ALL: &'static [AiContextSourceKind]
pub const fn as_str(self) -> &'static str
Trait Implementations§
§impl Clone for AiContextSourceKind
impl Clone for AiContextSourceKind
§fn clone(&self) -> AiContextSourceKind
fn clone(&self) -> AiContextSourceKind
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 AiContextSourceKind
impl Debug for AiContextSourceKind
§impl Display for AiContextSourceKind
impl Display for AiContextSourceKind
§impl FromStr for AiContextSourceKind
impl FromStr for AiContextSourceKind
§type Err = AiContextError
type Err = AiContextError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<AiContextSourceKind, <AiContextSourceKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiContextSourceKind, <AiContextSourceKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AiContextSourceKind
impl Hash for AiContextSourceKind
§impl Ord for AiContextSourceKind
impl Ord for AiContextSourceKind
§fn cmp(&self, other: &AiContextSourceKind) -> Ordering
fn cmp(&self, other: &AiContextSourceKind) -> 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 AiContextSourceKind
impl PartialEq for AiContextSourceKind
§impl PartialOrd for AiContextSourceKind
impl PartialOrd for AiContextSourceKind
impl Copy for AiContextSourceKind
impl Eq for AiContextSourceKind
impl StructuralPartialEq for AiContextSourceKind
Auto Trait Implementations§
impl Freeze for AiContextSourceKind
impl RefUnwindSafe for AiContextSourceKind
impl Send for AiContextSourceKind
impl Sync for AiContextSourceKind
impl Unpin for AiContextSourceKind
impl UnsafeUnpin for AiContextSourceKind
impl UnwindSafe for AiContextSourceKind
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