Struct r2d2_mysql::url::Url [] [src]

pub struct Url {
    pub scheme: String,
    pub user: Option<UserInfo>,
    pub host: String,
    pub port: Option<u16>,
    pub path: Path,
}

Fields

scheme
user
host
port
path

Methods

impl Url

fn new(scheme: String, user: Option<UserInfo>, host: String, port: Option<u16>, path: String, query: Query, fragment: Option<String>) -> Url

fn parse(rawurl: &str) -> DecodeResult<Url>

Trait Implementations

impl IntoConnectParams for Url

fn into_connect_params(self) -> Result<ConnectParams, ConnectError>

impl FromStr for Url

type Err = String

fn from_str(s: &str) -> Result<Url, String>