[][src]Enum tiberius::AuthMethod

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

Defines the method of authentication to the server.

Variants

SqlServer(SqlServerAuth)

Authenticate directly with SQL Server. The only authentication method that works on all platforms.

Windows(WindowsAuth)

Authenticate with Windows credentials. Only available on Windows platforms.

WindowsIntegrated

Authenticate as the currently logged in user. Only available on Windows 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]

Construct a new Windows authentication configuration. Only available on Windows platforms.

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,