pub enum ProviderRole {
System,
User,
Assistant,
Tool,
}Variants§
Trait Implementations§
Source§impl Clone for ProviderRole
impl Clone for ProviderRole
Source§fn clone(&self) -> ProviderRole
fn clone(&self) -> ProviderRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderRole
impl Debug for ProviderRole
Source§impl<'de> Deserialize<'de> for ProviderRole
impl<'de> Deserialize<'de> for ProviderRole
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProviderRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProviderRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProviderRole
impl PartialEq for ProviderRole
Source§fn eq(&self, other: &ProviderRole) -> bool
fn eq(&self, other: &ProviderRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderRole
impl Serialize for ProviderRole
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ProviderRole
Auto Trait Implementations§
impl Freeze for ProviderRole
impl RefUnwindSafe for ProviderRole
impl Send for ProviderRole
impl Sync for ProviderRole
impl Unpin for ProviderRole
impl UnsafeUnpin for ProviderRole
impl UnwindSafe for ProviderRole
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