pub struct CharacterAction {
pub agent_id: String,
pub kind: ActionKind,
pub target: Option<String>,
pub params: Vec<f64>,
}Expand description
An action the character takes in the game world.
Fields§
§agent_id: String§kind: ActionKind§target: Option<String>§params: Vec<f64>Trait Implementations§
Source§impl Clone for CharacterAction
impl Clone for CharacterAction
Source§fn clone(&self) -> CharacterAction
fn clone(&self) -> CharacterAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharacterAction
impl Debug for CharacterAction
Source§impl<'de> Deserialize<'de> for CharacterAction
impl<'de> Deserialize<'de> for CharacterAction
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
Auto Trait Implementations§
impl Freeze for CharacterAction
impl RefUnwindSafe for CharacterAction
impl Send for CharacterAction
impl Sync for CharacterAction
impl Unpin for CharacterAction
impl UnsafeUnpin for CharacterAction
impl UnwindSafe for CharacterAction
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