pub enum AuthData {
SqlServer {
username: String,
password_bytes: Vec<u8>,
},
FedAuth {
token: String,
nonce: Option<Bytes>,
},
Sspi {
blob: Vec<u8>,
},
None,
}Expand description
Authentication data produced by an auth provider.
This contains the data needed to authenticate with SQL Server, depending on the authentication method being used.
Sensitive fields (password bytes, tokens, SSPI blobs) are securely zeroized
on drop when the zeroize feature is enabled.
Variants§
SqlServer
SQL Server credentials for Login7 packet.
Fields
FedAuth
Federated authentication token for FEDAUTH feature.
Fields
Sspi
SSPI blob for integrated authentication.
None
No additional authentication data needed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AuthData
impl RefUnwindSafe for AuthData
impl Send for AuthData
impl Sync for AuthData
impl Unpin for AuthData
impl UnwindSafe for AuthData
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