pub struct AuthenticatedApi { /* private fields */ }
Expand description
The main entrypoint to the nextcloud API
Implementations§
Source§impl AuthenticatedApi
impl AuthenticatedApi
Sourcepub fn password(&self) -> PasswordApi<'_>
pub fn password(&self) -> PasswordApi<'_>
Access the Password API
Sourcepub fn settings(&self) -> SettingsApi<'_>
pub fn settings(&self) -> SettingsApi<'_>
Access the Settings API
Access the Share API
pub fn service(&self) -> ServiceApi<'_>
Sourcepub async fn resume_session(
resume_state: ResumeState,
) -> Result<(Self, String), Error>
pub async fn resume_session( resume_state: ResumeState, ) -> Result<(Self, String), Error>
Resume a connection to the API using the state. Also gives the session ID
Sourcepub async fn new_session(
login_details: LoginDetails,
) -> Result<(Self, String), Error>
pub async fn new_session( login_details: LoginDetails, ) -> Result<(Self, String), Error>
Create a new session to the API, returns the session ID
Sourcepub async fn disconnect(self) -> Result<(), Error>
pub async fn disconnect(self) -> Result<(), Error>
Disconnect from the session
Sourcepub fn get_state(&self) -> ResumeState
pub fn get_state(&self) -> ResumeState
Get the state to be able to resume this session
Auto Trait Implementations§
impl Freeze for AuthenticatedApi
impl !RefUnwindSafe for AuthenticatedApi
impl Send for AuthenticatedApi
impl Sync for AuthenticatedApi
impl Unpin for AuthenticatedApi
impl !UnwindSafe for AuthenticatedApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more