pub fn with_authentication(&self, authentication: Authentication) -> Self {
        DataSource {
            protocol: self.protocol.clone(),
            host: self.host.clone(),
            port: self.port,
            database_name: self.database_name.clone(),
            authentication,
            timeout: self.timeout,
        }
    }
/// Returns a new copy of this `DataSource` with the authentication
/// parameter set to the given authentication method.
Returns a new copy of this `DataSource` with the authentication
parameter set to the given authentication method.
Returns a new copy of this ` DataSource ` with the authentication parameter set to the given authentication method .
pub fn with_authentication(&self, authentication: Authentication) -> Self {
        DataSource {
            protocol: self.protocol.clone(),
            host: self.host.clone(),
            port: self.port,
            database_name: self.database_name.clone(),
            authentication,
            timeout: self.timeout,
        }
    }
pub fn with_authentication ( & self , authentication : Authentication ) -> Self { DataSource { protocol : self . protocol . clone ( ) , host : self . host . clone ( ) , port : self . port , database_name : self . database_name . clone ( ) , authentication , timeout : self . timeout , } }
Returns a new copy of this `DataSource` with the authentication
parameter set to the given authentication method.
Returns a new copy of this ` DataSource ` with the authentication parameter set to the given authentication method .
&self
authentication
Authentication
&self
authentication
Authentication