pub enum Credentials {
User {
username: String,
password: String,
},
RefreshToken(String),
}Expand description
A set of credentials used to authenticate with the Ring API.
Variants§
User
A username and password.
This method is subject to two-factor authentication (2FA) and may require a verification code to be sent to the user’s associated mobile number.
RefreshToken(String)
An existing refresh token for a user.
This can be generated by logging in with a username and password, and then
using get_refresh_token to retrieve it for later
use.
Trait Implementations§
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