pub struct Beat {
pub actor: String,
pub action: String,
pub accepted: bool,
pub effects: Vec<Effect>,
}Expand description
A single resolved action exchange within an encounter.
Beats are constructed by resolution protocols rather than deserialized from
external data, so they only implement Serialize.
Fields§
§actor: StringThe character performing the action.
action: StringThe action identifier.
accepted: boolWhether the action was accepted by the target.
effects: Vec<Effect>Effects that fire as a result of this beat.
Trait Implementations§
impl StructuralPartialEq for Beat
Auto Trait Implementations§
impl Freeze for Beat
impl RefUnwindSafe for Beat
impl Send for Beat
impl Sync for Beat
impl Unpin for Beat
impl UnsafeUnpin for Beat
impl UnwindSafe for Beat
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