pub struct Declared {
pub code: &'static str,
pub tier: Option<ExitTier>,
pub subject: Option<Subject>,
pub name: &'static str,
pub module: &'static str,
}Expand description
One registered declaration: the code, the constant that names it, and the properties the code carries.
Fields§
§code: &'static strThe code string (DW0944).
tier: Option<ExitTier>The exit tier, or None for a bare &str code — one raised by a verb
outside the campaign pipeline (prefab, schem, render, the view
arms), whose own exit table decides.
subject: Option<Subject>Whose state the verdict is about; None exactly when tier is.
name: &'static strThe constant’s name.
module: &'static strThe module that declares it.
Trait Implementations§
impl Copy for Declared
impl Eq for Declared
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Freeze for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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