[][src]Struct seed::browser::url::Url

pub struct Url {
    pub path: Vec<String>,
    pub search: Option<String>,
    pub hash: Option<String>,
    pub title: Option<String>,

Contains all information used in pushing and handling routes. Based on React-Reason's router.


path: Vec<String>search: Option<String>hash: Option<String>title: Option<String>


impl Url[src]

pub fn new<T: ToString>(path: Vec<T>) -> Self[src]

Helper that ignores hash, search and title, and converts path to Strings.


pub fn hash(self, hash: &str) -> Self[src]

Builder-pattern method for defining hash.


pub fn search(self, search: &str) -> Self[src]

Builder-pattern method for defining search.


pub fn title(self, title: &str) -> Self[src]

Trait Implementations

impl Clone for Url[src]

impl Debug for Url[src]

impl<'de> Deserialize<'de> for Url[src]

impl From<Url> for Url[src]

impl<'_> From<Vec<&'_ str>> for Url[src]

impl From<Vec<String>> for Url[src]

impl PartialEq<Url> for Url[src]

impl Serialize for Url[src]

impl StructuralPartialEq for Url[src]

impl TryFrom<String> for Url[src]

type Error = String

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Url

impl Send for Url

impl Sync for Url

impl Unpin for Url

impl UnwindSafe for Url

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.