[src]

Struct url::Path

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

Fields

path

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

query

The query component of a URL. vec!((~"baz", ~"qux")) 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: ~str, query: Query, fragment: Option<~str>) -> 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 Eq for Path

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

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

impl Clone for Path

fn clone(&self) -> Path