pub struct Client { /* private fields */ }Expand description
Blocking TypeSafe client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(inner: Client) -> Result<Self>
pub fn new(inner: Client) -> Result<Self>
Wrap an async client configured via crate::Client::builder.
Sourcepub fn system_one<S: Serialize>(
&self,
state: S,
questions: impl Into<Questions>,
) -> SystemOneRequest<'_>
pub fn system_one<S: Serialize>( &self, state: S, questions: impl Into<Questions>, ) -> SystemOneRequest<'_>
Sourcepub fn list_models(&self) -> ListModelsRequest<'_>
pub fn list_models(&self) -> ListModelsRequest<'_>
GET /v1/models.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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