Struct kvarn::comprash::PathQuery

source ·
pub struct PathQuery { /* private fields */ }
Expand description

A path an optional query used in UriKey

Represented as a String with a usize indicating the start of query.

Implementations§

source§

impl PathQuery

source

pub fn path(&self) -> &str

Get the path segment.

source

pub fn query(&self) -> Option<&str>

Get the optional query segment. &str will never be empty if the return value is None.

source

pub fn truncate_query(&mut self)