webdav_request/client/
inner.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use crate::url::WebDavURL;

#[derive(Debug, Clone)]
pub struct Range {
    pub start: usize,
    pub end: usize,
}

#[derive(Debug, Clone)]
pub struct Auth {
    pub username: String,
    pub password: String,
}

impl Auth {
    pub fn new(username: &str, password: &str) -> Self {
        Self {
            username: username.to_owned(),
            password: password.to_owned(),
        }
    }
}
#[derive(Clone, Default)]
pub struct InnerClient {
    pub(crate) base_url: Option<WebDavURL>,
    pub(crate) auth: Option<Auth>,
    pub(crate) inner: reqwest::Client,
}
unsafe impl Send for InnerClient {
    
}

unsafe impl Sync for InnerClient {
    
}