Struct url::Path[src]

pub struct Path {
    pub path: String,
    pub query: Query,
    pub fragment: Option<String>,
}

Fields

path

The path component of a URL, for example /foo/bar.

query

The query component of a URL. vec!(("baz".to_string(), "qux".to_string())) represents the fragment baz=qux in the above example.

fragment

The fragment component, such as quz. Doesn't include the leading # character.

Methods

impl Path

fn new(path: String, query: Query, fragment: Option<String>) -> Path

Trait Implementations

impl FromStr for Path

fn from_str(s: &str) -> Option<Path>

impl Show for Path

fn fmt(&self, f: &mut Formatter) -> Result

impl<S: Writer> Hash<S> for Path

fn hash(&self, state: &mut S)

Derived Implementations

impl PartialEq for Path

fn eq(&self, __arg_0: &Path) -> bool

fn ne(&self, __arg_0: &Path) -> bool

impl Clone for Path

fn clone(&self) -> Path

fn clone_from(&mut self, source: &Self)