pub enum AuthCredentials {
ApiKey(SecretString),
Credentials {
username: String,
password: SecretString,
},
Hybrid {
api_key: SecretString,
username: String,
password: SecretString,
},
Cloud {
api_key: SecretString,
host_id: String,
},
}Expand description
How to authenticate with a controller.
Named AuthCredentials (not AuthMethod) to avoid collision with
unifly_api::AuthStrategy which is a zero-data marker enum.
This type carries the actual credential data.
Variants§
ApiKey(SecretString)
Integration API key (preferred).
Credentials
Legacy cookie-based auth.
Hybrid
Hybrid: API key for Integration API + credentials for Legacy API.
Gives full access to both APIs in a single session — Integration API for CRUD and reads, Legacy API for stats, events, alarms, and admin.
Cloud
Cloud connector via api.ui.com.
Trait Implementations§
Source§impl Clone for AuthCredentials
impl Clone for AuthCredentials
Source§fn clone(&self) -> AuthCredentials
fn clone(&self) -> AuthCredentials
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AuthCredentials
impl RefUnwindSafe for AuthCredentials
impl Send for AuthCredentials
impl Sync for AuthCredentials
impl Unpin for AuthCredentials
impl UnsafeUnpin for AuthCredentials
impl UnwindSafe for AuthCredentials
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