[][src]Struct seed::routing::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.

Fields

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

Methods

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.

Refenences

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

Builder-pattern method for defining hash.

Refenences

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

Builder-pattern method for defining search.

Refenences

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

Trait Implementations

impl From<String> for Url[src]

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

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

impl Clone for Url[src]

impl Debug for Url[src]

impl Serialize for Url[src]

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

Auto Trait Implementations

impl Sync for Url

impl Unpin for Url

impl Send for Url

impl UnwindSafe for Url

impl RefUnwindSafe for Url

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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