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)
Available on Windows and crate feature
winauth
only.Authenticate with Windows credentials.
Integrated
Available on Windows, or Unix and crate feature
integrated-auth-gssapi
only.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
sourceimpl AuthMethod
impl AuthMethod
sourcepub fn sql_server(user: impl ToString, password: impl ToString) -> Self
pub fn sql_server(user: impl ToString, password: impl ToString) -> Self
Construct a new SQL Server authentication configuration.
Trait Implementations
sourceimpl Clone for AuthMethod
impl Clone for AuthMethod
sourcefn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AuthMethod
impl Debug for AuthMethod
sourceimpl PartialEq<AuthMethod> for AuthMethod
impl PartialEq<AuthMethod> for AuthMethod
sourcefn eq(&self, other: &AuthMethod) -> bool
fn eq(&self, other: &AuthMethod) -> bool
impl Eq for AuthMethod
impl StructuralEq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more