rusty_dropbox_sdk 0.1.0

Unofficial SDK for dropbox in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Enum representing necessary headers for requests
pub enum Headers {
    ContentTypeAppJson,
    TestAuthorization,
}

impl Headers {
    pub fn get_str(&self) -> (&str, &str) {
        match self {
            Headers::ContentTypeAppJson => ("Content-type", "application/json"),
            Headers::TestAuthorization => ("Authorization", "Bearer user"),
        }
    }
}