pub struct Rejection {
pub reason: RejectionReason,
pub requested: Option<f64>,
pub allowed: Option<Range>,
pub answer: RejectedAnswer,
}Expand description
The policy’s own refusal of one action, as a caller reads it.
Rejection::reason is the refusal itself, matched rather than read;
Rejection::requested and Rejection::allowed are the value that was
asked for and the range that is allowed, which the policy states when it
ruled on a value and which are absent when it ruled on something else.
Fields§
§reason: RejectionReasonWhy the action was refused.
requested: Option<f64>The value that was asked for, where the policy ruled on one.
allowed: Option<Range>The range that is allowed, where the policy ruled on a value.
answer: RejectedAnswerThe whole answer the refusal arrived in.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Rejection
Auto Trait Implementations§
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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