oauth1-twitter 0.2.1

Twitter OAuth 1.0a
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
#[derive(Debug, Clone)]
pub struct AuthenticationAccessToken {
    pub access_token: String,
    pub secret: String,
}

impl AuthenticationAccessToken {
    pub fn new(access_token: impl AsRef<str>, secret: impl AsRef<str>) -> Self {
        Self {
            access_token: access_token.as_ref().into(),
            secret: secret.as_ref().into(),
        }
    }
}