[−][src]Struct nextcloud_passwords_client::AuthenticatedApi
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_state: ResumeState
) -> Result<(Self, String), Error>
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]
login_details: LoginDetails
) -> Result<(Self, String), Error>
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
impl !RefUnwindSafe for AuthenticatedApi
impl Send for AuthenticatedApi
impl Sync for AuthenticatedApi
impl Unpin for AuthenticatedApi
impl !UnwindSafe for AuthenticatedApi
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,