pub struct DavClient { /* private fields */ }Implementations§
Source§impl DavClient
impl DavClient
pub fn new(username: &str, password: &str) -> Result<Self>
pub fn request(&self, method: Method, url: Url) -> WevDAVRequestBuilder
Sourcepub fn get(&self, url: impl IntoUrl) -> Result<WevDAVRequestBuilder>
pub fn get(&self, url: impl IntoUrl) -> Result<WevDAVRequestBuilder>
Initiates a GET request to retrieve a resource from the WebDAV server.
Sourcepub fn put(&self, url: impl IntoUrl) -> Result<WevDAVRequestBuilder>
pub fn put(&self, url: impl IntoUrl) -> Result<WevDAVRequestBuilder>
Initiates a PUT request to upload or update a resource on the WebDAV server.
Sourcepub async fn list(&self, url: impl IntoUrl) -> Result<Vec<DavItem>>
pub async fn list(&self, url: impl IntoUrl) -> Result<Vec<DavItem>>
Lists the contents of a WebDAV collection (directory).
pub async fn all_propfind(&self, url: impl IntoUrl) -> Result<Response>
Trait Implementations§
impl Send for DavClient
impl Sync for DavClient
Auto Trait Implementations§
impl Freeze for DavClient
impl !RefUnwindSafe for DavClient
impl Unpin for DavClient
impl !UnwindSafe for DavClient
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