[−][src]Enum kaggle::client::Authentication
Used to declare the credentials to use for authentication.
Default is the kaggle.json config file.
Variants
Get the credentials from KAGGLE_USERNAME
and KAGGLE_KEY
env
variables.
Where the kaggle.json
file is stored.
Default location is ~/.kaggle/kaggle.json
and on windows
C:\Users\<Windows-username>\.kaggle\kaggle.json
Use dedicated credentials for authentication.
Methods
impl Authentication
[src]
pub fn with_credentials<S: ToString, T: ToString>(user_name: S, key: T) -> Self
[src]
Use dedicated credentials.
pub fn with_config_file(path: impl AsRef<Path>) -> Self
[src]
Use credentials from a dedicated location.
Trait Implementations
impl Clone for Authentication
[src]
fn clone(&self) -> Authentication
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Authentication
[src]
impl Default for Authentication
[src]
Auto Trait Implementations
impl RefUnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnwindSafe for Authentication
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,