Struct reverse_proxy_service::rewrite::AppendSuffix
source · pub struct AppendSuffix<'a>(pub &'a str);
Expand description
Appends a suffix.
assert_eq!(AppendSuffix("foo").rewrite("bar"), "barfoo");
Tuple Fields§
§0: &'a str
Trait Implementations§
source§impl<'a> Clone for AppendSuffix<'a>
impl<'a> Clone for AppendSuffix<'a>
source§fn clone(&self) -> AppendSuffix<'a>
fn clone(&self) -> AppendSuffix<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for AppendSuffix<'a>
impl<'a> Debug for AppendSuffix<'a>
source§impl<'a> PartialEq<AppendSuffix<'a>> for AppendSuffix<'a>
impl<'a> PartialEq<AppendSuffix<'a>> for AppendSuffix<'a>
source§fn eq(&self, other: &AppendSuffix<'a>) -> bool
fn eq(&self, other: &AppendSuffix<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PathRewriter for AppendSuffix<'_>
impl PathRewriter for AppendSuffix<'_>
impl<'a> Copy for AppendSuffix<'a>
impl<'a> Eq for AppendSuffix<'a>
impl<'a> StructuralEq for AppendSuffix<'a>
impl<'a> StructuralPartialEq for AppendSuffix<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AppendSuffix<'a>
impl<'a> Send for AppendSuffix<'a>
impl<'a> Sync for AppendSuffix<'a>
impl<'a> Unpin for AppendSuffix<'a>
impl<'a> UnwindSafe for AppendSuffix<'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.