pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(base_url: impl Into<String>) -> Result<Self, Error>
pub fn with_timeout( base_url: impl Into<String>, timeout: Duration, ) -> Result<Self, Error>
Sourcepub fn systemone(&self, state: impl Into<String>) -> SystemOne<'_>
pub fn systemone(&self, state: impl Into<String>) -> SystemOne<'_>
Start a request. Questions are added to the returned builder.
Sourcepub async fn models(&self) -> Result<ModelsResponse, Error>
pub async fn models(&self) -> Result<ModelsResponse, Error>
The models this service will answer for.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze 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