33 lines
1.1 KiB
Rust
33 lines
1.1 KiB
Rust
//! # Nextcloud Client Library
|
|
//!
|
|
//! A high-performance, asynchronous Rust library for interacting with Nextcloud's
|
|
//! WebDAV file transfer APIs, OCS Sharing API, and credential storage.
|
|
|
|
pub mod auth;
|
|
pub mod client;
|
|
pub mod config;
|
|
pub mod credentials;
|
|
pub mod download;
|
|
pub mod error;
|
|
pub mod models;
|
|
pub mod progress;
|
|
pub mod sharing;
|
|
pub mod webdav;
|
|
|
|
// Convenient top-level re-exports
|
|
pub use auth::{
|
|
initiate_login_flow, interactive_browser_login, poll_login_flow, LoginFlowInitResponse,
|
|
LoginFlowPollInfo, LoginFlowPollSuccess,
|
|
};
|
|
pub use client::{NextcloudClient, ServerStatus};
|
|
pub use config::{AccountCredentials, ClientConfig};
|
|
pub use credentials::{CredentialStore, StoredAccount, KEYRING_SERVICE_NAME};
|
|
pub use download::{
|
|
build_direct_download_url, build_subfile_download_url, validate_share_token,
|
|
MAX_SHARE_TOKEN_LENGTH, MIN_SHARE_TOKEN_LENGTH,
|
|
};
|
|
pub use error::{NextcloudError, Result};
|
|
pub use models::{UploadOptions, UploadResult};
|
|
pub use progress::{ProgressCallback, ProgressEvent};
|
|
pub use sharing::{CreateShareParams, ShareInfo, ShareType};
|