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>) -> Selfwhere
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>
pub fn as_image_generation(&self) -> Option<&dyn ImageGenerationClientDyn>
Available on crate feature
image only.pub fn as_audio_generation(&self) -> Option<&dyn AudioGenerationClientDyn>
Available on crate feature
audio only.Auto Trait Implementationsยง
impl Freeze for AnyClient
impl !RefUnwindSafe for AnyClient
impl !Send for AnyClient
impl !Sync for AnyClient
impl Unpin 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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more