pub struct ForbiddenEffects {
pub commands: Vec<String>,
pub events: Vec<String>,
}Expand description
Effects an item asserts must not happen.
This is the assertion the specification calls out by name: not “the turn did what I wanted” but “the turn did not do the dangerous thing”. A scenario that asks a question about a trip must not rebook it, and the only way to test that is to say so.
Fields§
§commands: Vec<String>Command types that must not be journaled.
events: Vec<String>Event types that must not be committed.
Implementations§
Trait Implementations§
Source§impl Clone for ForbiddenEffects
impl Clone for ForbiddenEffects
Source§impl Debug for ForbiddenEffects
impl Debug for ForbiddenEffects
Source§impl Default for ForbiddenEffects
impl Default for ForbiddenEffects
Source§impl<'de> Deserialize<'de> for ForbiddenEffectswhere
ForbiddenEffects: Default,
impl<'de> Deserialize<'de> for ForbiddenEffectswhere
ForbiddenEffects: Default,
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 ForbiddenEffects
Source§impl PartialEq for ForbiddenEffects
impl PartialEq for ForbiddenEffects
Source§impl Serialize for ForbiddenEffects
impl Serialize for ForbiddenEffects
impl StructuralPartialEq for ForbiddenEffects
Auto Trait Implementations§
impl Freeze for ForbiddenEffects
impl RefUnwindSafe for ForbiddenEffects
impl Send for ForbiddenEffects
impl Sync for ForbiddenEffects
impl Unpin for ForbiddenEffects
impl UnsafeUnpin for ForbiddenEffects
impl UnwindSafe for ForbiddenEffects
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.