[][src]Struct nextcloud_passwords_client::LoginDetails

pub struct LoginDetails {
    pub server: Url,
    pub login_name: String,
    pub app_password: String,
}

Represent how to first connect to a nextcloud instance The best way to obtain some is using Login flow v2. You can use register_login_flow_2 to do this authentication

Fields

server: Urllogin_name: Stringapp_password: String

Implementations

impl LoginDetails[src]

pub async fn register_login_flow_2(
    server: Url,
    __arg1: impl FnMut(Url)
) -> Result<Self, Error>
[src]

Login with the login flow v2 to the server. The auth_callback is given the URL where the user will grant the permissions, this function should not block (or the authentication will never finish) waiting for the end of the login_flow.

Trait Implementations

impl Clone for LoginDetails[src]

impl Debug for LoginDetails[src]

impl<'de> Deserialize<'de> for LoginDetails[src]

impl Serialize for LoginDetails[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.