pub struct Refusal {
pub rule: RuleId,
pub reason: String,
}Expand description
An engine’s refusal: the rule that refuses, and why in the example’s words (bookspec/README.md’s refusal vocabulary, never an engine’s own message).
Fields§
§rule: RuleIdThe bookspec rule the refusal belongs to.
reason: StringWhat was refused, in the specification’s words.
Implementations§
Source§impl Refusal
impl Refusal
Sourcepub fn of_reason(reason: impl Into<String>) -> Self
pub fn of_reason(reason: impl Into<String>) -> Self
A refusal of reason, under the rule the specification assigns
that refusal (see rule_for_refusal); an unknown reason is a
specification defect, and the first rule of the ledger area is
named so the report still has an identifier to show.
Trait Implementations§
impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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