pub struct ClientConstruction {Show 14 fields
pub sdk: Sdk,
pub package: String,
pub constructor: String,
pub chain: String,
pub binding: Option<String>,
pub scope: ClientScope,
pub routing: Routing,
pub is_async: bool,
pub kwargs: Vec<String>,
pub splat: bool,
pub file: String,
pub span: Span,
pub symbol: Option<String>,
pub vertexai: Option<VertexAi>,
}Expand description
A client built from a tracked constructor.
Fields§
§sdk: Sdk§package: String§constructor: StringPackage-qualified constructor (openai.AzureOpenAI).
chain: StringThe constructor as written, arguments elided (oa.AzureOpenAI).
binding: Option<String>The binding it is assigned to (client, self.client), if any.
scope: ClientScope§routing: Routing§is_async: bool§kwargs: Vec<String>Keyword argument names, in source order. Values are never recorded.
splat: boolWhether **kwargs was passed (routing may then be unknown).
file: String§span: Span§symbol: Option<String>Enclosing function or method (Bot.__init__), None at module level.
vertexai: Option<VertexAi>For google.genai.Client(vertexai=...): how the argument reads.
Only this class is recorded, never the expression. None when the
constructor passes no vertexai=.
Trait Implementations§
Source§impl Clone for ClientConstruction
impl Clone for ClientConstruction
Source§impl Debug for ClientConstruction
impl Debug for ClientConstruction
Source§impl<'de> Deserialize<'de> for ClientConstruction
impl<'de> Deserialize<'de> for ClientConstruction
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 ClientConstruction
Source§impl PartialEq for ClientConstruction
impl PartialEq for ClientConstruction
Source§impl Serialize for ClientConstruction
impl Serialize for ClientConstruction
impl StructuralPartialEq for ClientConstruction
Auto Trait Implementations§
impl Freeze for ClientConstruction
impl RefUnwindSafe for ClientConstruction
impl Send for ClientConstruction
impl Sync for ClientConstruction
impl Unpin for ClientConstruction
impl UnsafeUnpin for ClientConstruction
impl UnwindSafe for ClientConstruction
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