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