#[repr(C)]pub struct RiskDecision {
pub allowed: bool,
pub reason: RiskRejectReason,
pub text: ExecutionText,
}Expand description
Risk decision.
Fields§
§allowed: boolTrue when the request is allowed to route.
reason: RiskRejectReasonStructured reject reason.
text: ExecutionTextBounded diagnostic text.
Implementations§
Source§impl RiskDecision
impl RiskDecision
Sourcepub fn reject(reason: RiskRejectReason, text: ExecutionText) -> Self
pub fn reject(reason: RiskRejectReason, text: ExecutionText) -> Self
Creates a reject decision.
Trait Implementations§
Source§impl Clone for RiskDecision
impl Clone for RiskDecision
Source§fn clone(&self) -> RiskDecision
fn clone(&self) -> RiskDecision
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 moreimpl Copy for RiskDecision
Source§impl Debug for RiskDecision
impl Debug for RiskDecision
impl Eq for RiskDecision
Source§impl PartialEq for RiskDecision
impl PartialEq for RiskDecision
Source§fn eq(&self, other: &RiskDecision) -> bool
fn eq(&self, other: &RiskDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RiskDecision
Auto Trait Implementations§
impl Freeze for RiskDecision
impl RefUnwindSafe for RiskDecision
impl Send for RiskDecision
impl Sync for RiskDecision
impl Unpin for RiskDecision
impl UnsafeUnpin for RiskDecision
impl UnwindSafe for RiskDecision
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