pub enum FallbackAction {
DefaultValue {
value: String,
},
AlternativeService {
service_name: String,
},
CachedResponse {
cache_key: String,
},
QueueRequest {
queue_name: String,
},
Manual {
action: ManualAction,
},
Custom {
action_name: String,
parameters: HashMap<String, String>,
},
}Expand description
Fallback action enumeration
Variants§
DefaultValue
Return default value
AlternativeService
Call alternative service
CachedResponse
Use cached response
QueueRequest
Queue for later processing
Manual
Manual action required
Fields
§
action: ManualActionCustom
Custom fallback
Trait Implementations§
Source§impl Clone for FallbackAction
impl Clone for FallbackAction
Source§fn clone(&self) -> FallbackAction
fn clone(&self) -> FallbackAction
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 moreAuto Trait Implementations§
impl Freeze for FallbackAction
impl RefUnwindSafe for FallbackAction
impl Send for FallbackAction
impl Sync for FallbackAction
impl Unpin for FallbackAction
impl UnwindSafe for FallbackAction
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<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