Enum http_box::util::QuerySegment [] [src]

pub enum QuerySegment<'a> {
    Name(&'a [u8]),
    NameValue(&'a [u8]&'a [u8]),
}

Query segments.

Variants

Name without a value.

Name and value pair.

Methods

impl<'a> QuerySegment<'a>
[src]

Indicates that this [QuerySegment] contains a value.

Retrieve the name.

Retrieve the value.

Trait Implementations

impl<'a> Debug for QuerySegment<'a>
[src]

Formats the value using the given formatter.

impl<'a> Display for QuerySegment<'a>
[src]

Formats the value using the given formatter.