oauth1_twitter/objects/
authentication_access_token.rs

1//
2#[derive(Debug, Clone)]
3pub struct AuthenticationAccessToken {
4    pub access_token: String,
5    pub secret: String,
6}
7
8impl AuthenticationAccessToken {
9    pub fn new(access_token: impl AsRef<str>, secret: impl AsRef<str>) -> Self {
10        Self {
11            access_token: access_token.as_ref().into(),
12            secret: secret.as_ref().into(),
13        }
14    }
15}