pub struct RoutingReason {
pub code: RoutingReasonCode,
pub detail: String,
}Expand description
Reason for a routing decision. The code field is the stable
machine-readable handle; detail is the operator-readable explanation
that surfaces in the dashboard.
Fields§
§code: RoutingReasonCode§detail: StringImplementations§
Source§impl RoutingReason
impl RoutingReason
pub fn new(code: RoutingReasonCode, detail: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for RoutingReason
impl Clone for RoutingReason
Source§fn clone(&self) -> RoutingReason
fn clone(&self) -> RoutingReason
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 RoutingReason
impl Debug for RoutingReason
Source§impl<'de> Deserialize<'de> for RoutingReason
impl<'de> Deserialize<'de> for RoutingReason
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 RoutingReason
impl PartialEq for RoutingReason
Source§impl Serialize for RoutingReason
impl Serialize for RoutingReason
impl StructuralPartialEq for RoutingReason
Auto Trait Implementations§
impl Freeze for RoutingReason
impl RefUnwindSafe for RoutingReason
impl Send for RoutingReason
impl Sync for RoutingReason
impl Unpin for RoutingReason
impl UnsafeUnpin for RoutingReason
impl UnwindSafe for RoutingReason
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