Enum gotham::router::tree::segment::SegmentType [−][src]
pub enum SegmentType {
Static,
Constrained {
regex: Box<ConstrainedSegmentRegex>,
},
Dynamic,
Glob,
}
Expand description
Indicates the type of segment which is being represented by this Node.
Variants
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
.
Uses the supplied regex to determine match against incoming request paths.
Fields of Constrained
regex: Box<ConstrainedSegmentRegex>
Regex used to match against a single segment of a request path.
Matches any corresponding segment for incoming request paths.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SegmentType
impl Send for SegmentType
impl Sync for SegmentType
impl Unpin for SegmentType
impl UnwindSafe for SegmentType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more