pub struct RouteValidationError {
pub route_pattern: String,
pub scheme: String,
pub network: String,
pub reason: String,
pub message: String,
}Expand description
A validation error for a route configuration.
Returned by super::server::PaymentGateLayer::validate_routes when a
payment option references an unregistered scheme or unsupported
facilitator combination.
Corresponds to Python SDK’s RouteValidationError in http/types.py.
Fields§
§route_pattern: StringThe route pattern (e.g., "GET /weather").
scheme: StringScheme identifier (e.g., "exact").
network: StringCAIP-2 network identifier.
reason: StringReason code ("missing_scheme" or "missing_facilitator").
message: StringHuman-readable error message.
Trait Implementations§
Source§impl Clone for RouteValidationError
impl Clone for RouteValidationError
Source§fn clone(&self) -> RouteValidationError
fn clone(&self) -> RouteValidationError
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 RouteValidationError
impl Debug for RouteValidationError
Auto Trait Implementations§
impl Freeze for RouteValidationError
impl RefUnwindSafe for RouteValidationError
impl Send for RouteValidationError
impl Sync for RouteValidationError
impl Unpin for RouteValidationError
impl UnwindSafe for RouteValidationError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.