pub struct ObligationStanding {
pub state: String,
pub detail: String,
pub reproduce: String,
}Expand description
use majordomus_cli::gates::ObligationStanding;
// the closure's own word, carried verbatim; nothing here re-judges it
let standing = ObligationStanding {
state: "owed".into(),
detail: "no evidence covers it".into(),
reproduce: "majordomus evidence --covers tests --command 'just test'".into(),
};
assert_eq!(standing.state, "owed");The state of one obligation as crate::capability::builtin::obligations judged it:
the token, its state word, and the line the validator would refuse with.
Fields§
§state: StringThe state word: discharged, owed, stale or undeclared.
detail: StringWhat the closure said about it, verbatim.
reproduce: StringThe command that would discharge it, as the closure gave it.
Trait Implementations§
Source§impl Clone for ObligationStanding
impl Clone for ObligationStanding
Source§fn clone(&self) -> ObligationStanding
fn clone(&self) -> ObligationStanding
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 ObligationStanding
impl Debug for ObligationStanding
Source§impl Default for ObligationStanding
impl Default for ObligationStanding
Source§fn default() -> ObligationStanding
fn default() -> ObligationStanding
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObligationStanding
impl RefUnwindSafe for ObligationStanding
impl Send for ObligationStanding
impl Sync for ObligationStanding
impl Unpin for ObligationStanding
impl UnsafeUnpin for ObligationStanding
impl UnwindSafe for ObligationStanding
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