pub struct ClientOptions {
pub hf_token: Option<String>,
pub auth: Option<(String, String)>,
}Fields§
§hf_token: Option<String>§auth: Option<(String, String)>Implementations§
Source§impl ClientOptions
impl ClientOptions
pub fn with_hf_token(hf_token: String) -> ClientOptions
pub fn with_auth(username: String, password: String) -> Self
Trait Implementations§
Source§impl Default for ClientOptions
impl Default for ClientOptions
Source§fn default() -> ClientOptions
fn default() -> ClientOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientOptions
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
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