pub enum SgHttpPathModifierType {
ReplaceFullPath,
ReplacePrefixMatch,
ReplaceRegex,
}Variants§
ReplaceFullPath
This type of modifier indicates that the full path will be replaced by the specified value.
ReplacePrefixMatch
This type of modifier indicates that any prefix path matches will be replaced by the substitution value. For example, a path with a prefix match of “/foo” and a ReplacePrefixMatch substitution of “/bar” will have the “/foo” prefix replaced with “/bar” in matching requests.
ReplaceRegex
Trait Implementations§
Source§impl Clone for SgHttpPathModifierType
impl Clone for SgHttpPathModifierType
Source§fn clone(&self) -> SgHttpPathModifierType
fn clone(&self) -> SgHttpPathModifierType
Returns a duplicate 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 Debug for SgHttpPathModifierType
impl Debug for SgHttpPathModifierType
Source§impl Default for SgHttpPathModifierType
impl Default for SgHttpPathModifierType
Source§fn default() -> SgHttpPathModifierType
fn default() -> SgHttpPathModifierType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SgHttpPathModifierType
impl<'de> Deserialize<'de> for SgHttpPathModifierType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SgHttpPathModifierType
impl PartialEq for SgHttpPathModifierType
Source§impl Serialize for SgHttpPathModifierType
impl Serialize for SgHttpPathModifierType
impl Copy for SgHttpPathModifierType
impl Eq for SgHttpPathModifierType
impl StructuralPartialEq for SgHttpPathModifierType
Auto Trait Implementations§
impl Freeze for SgHttpPathModifierType
impl RefUnwindSafe for SgHttpPathModifierType
impl Send for SgHttpPathModifierType
impl Sync for SgHttpPathModifierType
impl Unpin for SgHttpPathModifierType
impl UnwindSafe for SgHttpPathModifierType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.