Enum tiberius::AuthMethod
source · pub enum AuthMethod {
SqlServer(SqlServerAuth),
Windows(WindowsAuth),
Integrated,
AADToken(String),
// some variants omitted
}
Expand description
Defines the method of authentication to the server.
Variants§
SqlServer(SqlServerAuth)
Authenticate directly with SQL Server.
Windows(WindowsAuth)
Authenticate with Windows credentials.
Integrated
Authenticate as the currently logged in user. On Windows uses SSPI and Kerberos on Unix platforms.
AADToken(String)
Authenticate with an AAD token. The token should encode an AAD user/service principal which has access to SQL Server.
Implementations§
Trait Implementations§
source§impl Clone for AuthMethod
impl Clone for AuthMethod
source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
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 Debug for AuthMethod
impl Debug for AuthMethod
source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
impl Eq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)