pub struct SdkConfig(/* private fields */);Implementations§
Source§impl SdkConfig
impl SdkConfig
Sourcepub fn new(config: &SdkFullConfig) -> Result<Self, SdkError>
pub fn new(config: &SdkFullConfig) -> Result<Self, SdkError>
Build an SdkConfig for a pure-Rust caller. The User-Agent will
identify the core crate (quicknode-sdk-rust/<version>).
Sourcepub fn new_with_client_info(
config: &SdkFullConfig,
client_info: Option<ClientInfo>,
) -> Result<Self, SdkError>
pub fn new_with_client_info( config: &SdkFullConfig, client_info: Option<ClientInfo>, ) -> Result<Self, SdkError>
Build an SdkConfig while attributing the User-Agent to a specific
language binding (Python/Node/Ruby). Used by the binding crates so
telemetry on the server side reflects the actual caller.
If client_info is None, falls back to the pure-Rust identity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SdkConfig
impl !RefUnwindSafe for SdkConfig
impl Send for SdkConfig
impl Sync for SdkConfig
impl Unpin for SdkConfig
impl UnsafeUnpin for SdkConfig
impl !UnwindSafe for SdkConfig
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