webdav-request a lightweight webdav client library, based on reqwest.
This is a library under development and is not stable.
use webdav_request::DavClient;
const WEBDAV_URL: &str = "https://your.webdav.com";
const USERNAME: &str = "name";
const PASSWORD: &str = "password";
#[tokio::main]
async fn main() -> webdav_request::Result<()> {
let client = DavClient::new(USERNAME, PASSWORD)?;
let mut nodes = client.list(format!("{}/", WEBDAV_URL)).await?;
println!("{:#?}", nodes);
Ok(())
}