moabdb 0.1.1

A Rust client for the MoabDB database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Jackson Coxson

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Credentials {
    pub username: String,
    pub token: String,
}

impl Credentials {
    pub fn new(username: impl AsRef<str>, token: impl AsRef<str>) -> Self {
        Self {
            username: username.as_ref().to_string(),
            token: token.as_ref().to_string(),
        }
    }
}