pub enum RuleMode {
MatchAny,
Sequential,
}
๐Deprecated since 0.2.4: The
aws-smithy-mocks-experimental
crate is now deprecated and is replaced by the aws-smithy-mocks
crate. Please migrate to the non-experimental crate.Expand description
RuleMode describes how rules will be interpreted.
- In RuleMode::MatchAny, the first matching rule will be applied, and the rules will remain unchanged.
- In RuleMode::Sequential, the first matching rule will be applied, and that rule will be removed from the list of rules.
Variantsยง
MatchAny
๐Deprecated since 0.2.4: The
aws-smithy-mocks-experimental
crate is now deprecated and is replaced by the aws-smithy-mocks
crate. Please migrate to the non-experimental crate.Sequential
๐Deprecated since 0.2.4: The
aws-smithy-mocks-experimental
crate is now deprecated and is replaced by the aws-smithy-mocks
crate. Please migrate to the non-experimental crate.Auto Trait Implementationsยง
impl Freeze for RuleMode
impl RefUnwindSafe for RuleMode
impl Send for RuleMode
impl Sync for RuleMode
impl Unpin for RuleMode
impl UnwindSafe for RuleMode
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
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.