1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use std::borrow::Cow;

#[derive(Clone)]
pub struct Auth {
    pub apikey: Cow<'static, str>,
    pub secretapikey: Cow<'static, str>,
}

impl Auth {
    pub fn new(key: Cow<'static, str>, secret: Cow<'static, str>) -> Self {
        Self {
            apikey: key,
            secretapikey: secret,
        }
    }
}