pub struct ResourceTransformRule {
pub kinds: ResourceKindFlag,
pub flags: UrlMatchFlag,
pub url: String,
pub parameters: Vec<UrlQueryParameter>,
}Expand description
Query parameters to add to the URLs of requests that match a pattern.
The library adds the parameters, in order, at the end of the URL’s query and before any fragment. It keeps the parameters that the URL already has, even one with the same name.
See mln_resource_transform_rule in the
C API reference.
Fields§
§kinds: ResourceKindFlagThe kinds of resource that the rule covers. Zero covers every kind.
flags: UrlMatchFlag§url: String§parameters: Vec<UrlQueryParameter>Trait Implementations§
Source§impl Clone for ResourceTransformRule
impl Clone for ResourceTransformRule
Source§fn clone(&self) -> ResourceTransformRule
fn clone(&self) -> ResourceTransformRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceTransformRule
impl Debug for ResourceTransformRule
Source§impl Default for ResourceTransformRule
impl Default for ResourceTransformRule
Source§fn default() -> ResourceTransformRule
fn default() -> ResourceTransformRule
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResourceTransformRule
impl PartialEq for ResourceTransformRule
impl StructuralPartialEq for ResourceTransformRule
Auto Trait Implementations§
impl Freeze for ResourceTransformRule
impl RefUnwindSafe for ResourceTransformRule
impl Send for ResourceTransformRule
impl Sync for ResourceTransformRule
impl Unpin for ResourceTransformRule
impl UnsafeUnpin for ResourceTransformRule
impl UnwindSafe for ResourceTransformRule
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more