[][src]Enum tiberius::AuthMethod

pub enum AuthMethod {
    SqlServer(SqlServerAuth),
    Windows(WindowsAuth),
    Integrated,
    // some variants omitted
}

Defines the method of authentication to the server.

Variants

SqlServer(SqlServerAuth)

Authenticate directly with SQL Server.

Windows(WindowsAuth)
This is supported on Windows only.

Authenticate with Windows credentials.

Integrated
This is supported 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.

Implementations

impl AuthMethod[src]

pub fn sql_server(user: impl ToString, password: impl ToString) -> Self[src]

Construct a new SQL Server authentication configuration.

pub fn windows(user: impl AsRef<str>, password: impl ToString) -> Self[src]

This is supported on Windows only.

Construct a new Windows authentication configuration.

Trait Implementations

impl Clone for AuthMethod[src]

impl Debug for AuthMethod[src]

impl PartialEq<AuthMethod> for AuthMethod[src]

impl StructuralPartialEq for AuthMethod[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.