[−][src]Struct nextcloud_passwords_client::LoginDetails
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: Url
login_name: String
app_password: String
Implementations
impl LoginDetails
[src]
pub async fn register_login_flow_2(
server: Url,
__arg1: impl FnMut(Url)
) -> Result<Self, Error>
[src]
server: Url,
__arg1: impl FnMut(Url)
) -> Result<Self, Error>
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]
fn clone(&self) -> LoginDetails
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LoginDetails
[src]
impl<'de> Deserialize<'de> for LoginDetails
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for LoginDetails
[src]
Auto Trait Implementations
impl RefUnwindSafe for LoginDetails
impl Send for LoginDetails
impl Sync for LoginDetails
impl Unpin for LoginDetails
impl UnwindSafe for LoginDetails
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,