pub fn with_name<N, P>(name: N, password: P) -> Self
    where
        N: Into<String>,
        P: Into<String>,
    {
        NewUser {
            user: name.into(),
            passwd: Some(password.into()),
            active: None,
            extra: None,
        }
    }
/// Constructs a new instance of `NewUser` with given name and password.
///
/// The user will be active by default and will not have any extra data
/// assigned.
Constructs a new instance of `NewUser` with given name and password.
The user will be active by default and will not have any extra data
assigned.
Constructs a new instance of ` NewUser ` with given name and password . The user will be active by default and will not have any extra data assigned .
pub fn with_name<N, P>(name: N, password: P) -> Self
    where
        N: Into<String>,
        P: Into<String>,
    {
        NewUser {
            user: name.into(),
            passwd: Some(password.into()),
            active: None,
            extra: None,
        }
    }
pub fn with_name < N , P > ( name : N , password : P ) -> Self where N : Into < String > , P : Into < String > , { NewUser { user : name . into ( ) , passwd : Some ( password . into ( ) ) , active : None , extra : None , } }
Constructs a new instance of `NewUser` with given name and password.
Constructs a new instance of ` NewUser ` with given name and password .
name
N
password
P
name
N
password
P