[][src]Enum gotham::router::tree::segment::SegmentType

pub enum SegmentType {
    Static,
    Constrained {
        regex: ConstrainedSegmentRegex,
    },
    Dynamic,
    Glob,
}

Indicates the type of segment which is being represented by this Node.

Variants

Static

Is matched exactly (string equality) to the segment for incoming request paths.

Unlike all other SegmentTypes, values determined to be associated with this segment within a Request path are not stored within State.

Constrained

Uses the supplied regex to determine match against incoming request paths.

Fields of Constrained

regex: ConstrainedSegmentRegex

Regex used to match against a single segment of a request path.

Dynamic

Matches any corresponding segment for incoming request paths.

Glob

Matches multiple path segments until the end of the request path or until a child segment of the above defined types is found.

Trait Implementations

impl Clone for SegmentType[src]

impl Eq for SegmentType[src]

impl Ord for SegmentType[src]

impl PartialEq<SegmentType> for SegmentType[src]

impl PartialOrd<SegmentType> for SegmentType[src]

impl StructuralEq for SegmentType[src]

impl StructuralPartialEq for SegmentType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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

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.