Struct exar_server::ServerConfig
[−]
[src]
pub struct ServerConfig { pub host: String, pub port: u16, pub username: Option<String>, pub password: Option<String>, }
Exar DB's server configuration.
Examples
extern crate exar_server; use exar_server::*; let config = ServerConfig { host: "127.0.0.1".to_owned(), port: 38580, username: Some("username".to_owned()), password: Some("password".to_owned()) };
Fields
host: String
The server host.
port: u16
The server port.
username: Option<String>
The server authentication's username.
password: Option<String>
The server authentication's password.
Methods
impl ServerConfig
[src]
Trait Implementations
impl Decodable for ServerConfig
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ServerConfig, __D::Error>
impl Encodable for ServerConfig
[src]
impl Eq for ServerConfig
[src]
impl PartialEq for ServerConfig
[src]
fn eq(&self, __arg_0: &ServerConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ServerConfig) -> bool
This method tests for !=
.
impl Debug for ServerConfig
[src]
impl Clone for ServerConfig
[src]
fn clone(&self) -> ServerConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for ServerConfig
[src]
fn default() -> ServerConfig
Returns the "default value" for a type. Read more