pub struct Credentials {
pub client_id: String,
pub client_secret: String,
pub username: String,
pub password: String,
}
Fields§
§client_id: String
§client_secret: String
§username: String
§password: String
Implementations§
Source§impl Credentials
impl Credentials
pub fn from_params( client_id: String, client_secret: String, username: String, password: String, ) -> Credentials
pub fn from_custom_path( env_client_id_name: String, env_client_secret_name: String, env_username_name: String, env_password_name: String, ) -> Credentials
pub fn from_path() -> Credentials
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Credentials
impl Default for Credentials
Source§fn default() -> Credentials
fn default() -> Credentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
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