Struct replicate_rust::client::Client
source · pub struct Client {
pub auth: String,
pub user_agent: String,
pub base_url: String,
}
Expand description
The client module contains the Client struct, which is used to initialize settings for the API client.
It contains the API token
, the user agent
and the base url
.
Currently, the API token is the only required parameter.
The user agent
is set to replicate-rust/{CARGO_PKG_VERSION}
.
The base url
is set to https://api.replicate.com/v1
.
Fields§
§auth: String
§user_agent: String
§base_url: String
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe 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