pub struct ClientInfo {
pub language: String,
pub language_version: String,
pub sdk_version: String,
}Expand description
Identifies the language and runtime making SDK calls. Each binding crate
(Python, Node, Ruby) constructs this and passes it through
[SdkConfig::new_with_client_info] so the SDK’s auto-generated
User-Agent reflects the actual caller, not the underlying Rust core.
Fields§
§language: StringShort language identifier, e.g. "python", "node", "ruby", "rust".
language_version: StringRuntime version of the language, e.g. "3.12.4", "20.10.0", "3.3.0".
sdk_version: StringVersion string of the language-specific SDK package — read from the language’s own manifest (PyPI version, npm version, gem version).
Trait Implementations§
Source§impl Clone for ClientInfo
impl Clone for ClientInfo
Source§fn clone(&self) -> ClientInfo
fn clone(&self) -> ClientInfo
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 moreAuto Trait Implementations§
impl Freeze for ClientInfo
impl RefUnwindSafe for ClientInfo
impl Send for ClientInfo
impl Sync for ClientInfo
impl Unpin for ClientInfo
impl UnsafeUnpin for ClientInfo
impl UnwindSafe for ClientInfo
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