pub struct PursuitChanged {
pub step: PursuitMove,
pub goal: Option<String>,
}Expand description
pursuit_changed: one step a person took on a building’s pursuit,
and the goal the building holds after it.
goal is absent exactly when the step left no pursuit, which is a
clear; every other step leaves one and writes its goal.
Fields§
§step: PursuitMove§goal: Option<String>Implementations§
Source§impl PursuitChanged
impl PursuitChanged
Sourcepub fn held(self) -> Result<Option<(String, PursuitState)>, AxError>
pub fn held(self) -> Result<Option<(String, PursuitState)>, AxError>
The goal and state the building holds after this step, or None
when the step cleared it.
§Errors
Refuses a step that leaves a pursuit but names no goal: a reader that invented an empty goal for it would hold a pursuit nobody declared.
Trait Implementations§
Source§impl Clone for PursuitChanged
impl Clone for PursuitChanged
Source§impl Debug for PursuitChanged
impl Debug for PursuitChanged
Source§impl<'de> Deserialize<'de> for PursuitChanged
impl<'de> Deserialize<'de> for PursuitChanged
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PursuitChanged
Source§impl PartialEq for PursuitChanged
impl PartialEq for PursuitChanged
Source§impl Serialize for PursuitChanged
impl Serialize for PursuitChanged
impl StructuralPartialEq for PursuitChanged
Auto Trait Implementations§
impl Freeze for PursuitChanged
impl RefUnwindSafe for PursuitChanged
impl Send for PursuitChanged
impl Sync for PursuitChanged
impl Unpin for PursuitChanged
impl UnsafeUnpin for PursuitChanged
impl UnwindSafe for PursuitChanged
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