simple-mongo 0.1.4

A simple MongoDB wrapper for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Clone)]
pub struct Credentials {
    pub username: String,
    pub password: String,
}

impl Credentials {
    pub fn new(username:&str, password:&str)->Option<Credentials>{
        Some(Credentials{username:username.to_string(),password:password.to_string()})
    }
}