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

The server host.

The server port.

The server authentication's username.

The server authentication's password.

Methods

impl ServerConfig
[src]

Returns a string representation of the server address (host:port).

Trait Implementations

impl Clone for ServerConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ServerConfig
[src]

Formats the value using the given formatter.

impl PartialEq for ServerConfig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ServerConfig
[src]

impl Default for ServerConfig
[src]

Returns the "default value" for a type. Read more