pub struct NewEffect {
pub id: Uuid,
pub name: String,
pub source: Option<Uuid>,
pub targets: Vec<Uuid>,
pub concentration: bool,
pub rounds: Option<u32>,
}Expand description
An effect for a command to put into play.
Fields§
§id: UuidChosen by the client, like combatant ids.
name: String§source: Option<Uuid>§targets: Vec<Uuid>§concentration: bool§rounds: Option<u32>Duration in rounds, counted in turns of the source, or (with no
source, like a fire on the floor) of whoever’s turn it is when it’s
added; None lasts until removed. Targets are optional too.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewEffect
impl<'de> Deserialize<'de> for NewEffect
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 NewEffect
impl StructuralPartialEq for NewEffect
Auto Trait Implementations§
impl Freeze for NewEffect
impl RefUnwindSafe for NewEffect
impl Send for NewEffect
impl Sync for NewEffect
impl Unpin for NewEffect
impl UnsafeUnpin for NewEffect
impl UnwindSafe for NewEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.