Struct reverse_proxy_service::rewrite::Static
source · pub struct Static<'a>(pub &'a str);
Expand description
Returns self.0
regardless what the path
is.
assert_eq!(Static("bar").rewrite("foo"), "bar");
Tuple Fields§
§0: &'a str
Trait Implementations§
source§impl<'a> PartialEq<Static<'a>> for Static<'a>
impl<'a> PartialEq<Static<'a>> for Static<'a>
source§impl PathRewriter for Static<'_>
impl PathRewriter for Static<'_>
impl<'a> Copy for Static<'a>
impl<'a> Eq for Static<'a>
impl<'a> StructuralEq for Static<'a>
impl<'a> StructuralPartialEq for Static<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Static<'a>
impl<'a> Send for Static<'a>
impl<'a> Sync for Static<'a>
impl<'a> Unpin for Static<'a>
impl<'a> UnwindSafe for Static<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.