flep 0.2.0

File transfer protocol (FTP) library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;

#[derive(Clone, PartialEq, Eq)]
pub struct Credentials
{
    pub username: String,
    pub password: Option<String>,
}

// We have a custom Debug implementation so we don't print the password.
impl fmt::Debug for Credentials
{
    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
        write!(fmt, "Credentials {{ username: {:?} }}", self.username)
    }
}