pub enum ClientScope {
Module,
Local,
Class,
Attribute,
Inline,
}Expand description
How a constructed client is held.
Variants§
Module
A module-level name (including a global assigned in a function).
Local
A function-local name.
Class
A class-body attribute (class Bot: client = OpenAI()).
Attribute
An instance attribute (self.client = OpenAI()).
Inline
Not bound to a name: passed, returned or chained directly.
Trait Implementations§
Source§impl Clone for ClientScope
impl Clone for ClientScope
impl Copy for ClientScope
Source§impl Debug for ClientScope
impl Debug for ClientScope
Source§impl<'de> Deserialize<'de> for ClientScope
impl<'de> Deserialize<'de> for ClientScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientScope
Source§impl Hash for ClientScope
impl Hash for ClientScope
Source§impl PartialEq for ClientScope
impl PartialEq for ClientScope
Source§impl Serialize for ClientScope
impl Serialize for ClientScope
impl StructuralPartialEq for ClientScope
Auto Trait Implementations§
impl Freeze for ClientScope
impl RefUnwindSafe for ClientScope
impl Send for ClientScope
impl Sync for ClientScope
impl Unpin for ClientScope
impl UnsafeUnpin for ClientScope
impl UnwindSafe for ClientScope
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