[][src]Struct nextcloud_passwords_client::AuthenticatedApi

pub struct AuthenticatedApi { /* fields omitted */ }

The main entrypoint to the nextcloud API

Implementations

impl AuthenticatedApi[src]

pub fn server(&self) -> &Url[src]

Return the URL of the nextcloud instance

pub fn password(&self) -> PasswordApi<'_>[src]

Access the Password API

pub fn settings(&self) -> SettingsApi<'_>[src]

Access the Settings API

pub fn folder(&self) -> FolderApi<'_>[src]

Access the Folder API

pub fn share(&self) -> ShareApi<'_>[src]

Access the Share API

pub fn service(&self) -> ServiceApi<'_>[src]

pub async fn resume_session(
    resume_state: ResumeState
) -> Result<(Self, String), Error>
[src]

Resume a connection to the API using the state. Also gives the session ID

pub async fn new_session(
    login_details: LoginDetails
) -> Result<(Self, String), Error>
[src]

Create a new session to the API, returns the session ID

pub async fn disconnect(self) -> Result<(), Error>[src]

Disconnect from the session

pub fn get_state(&self) -> ResumeState[src]

Get the state to be able to resume this session

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