pub struct AnyClient { /* private fields */ }👎Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release.Implementations§
Source§impl AnyClient
impl AnyClient
pub fn new<Ext, H>(client: Client<Ext, H>) -> AnyClientwhere
Ext: Provider + Capabilities + WasmCompatSend + WasmCompatSync + 'static,
H: WasmCompatSend + WasmCompatSync + 'static,
Client<Ext, H>: WasmCompatSend + WasmCompatSync + 'static,
pub fn as_completion(&self) -> Option<&dyn CompletionClientDyn>
pub fn as_embedding(&self) -> Option<&dyn EmbeddingsClientDyn>
pub fn as_transcription(&self) -> Option<&dyn TranscriptionClientDyn>
Auto Trait Implementations§
impl Freeze for AnyClient
impl !RefUnwindSafe for AnyClient
impl !Send for AnyClient
impl !Sync for AnyClient
impl Unpin for AnyClient
impl UnsafeUnpin for AnyClient
impl !UnwindSafe for AnyClient
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