pub enum BehaviorAction {
SendMessage {
target: String,
message_type: MessageType,
content: String,
},
SeekResources,
Reproduce {
target: String,
},
Evolve,
Rest,
Explore,
Socialize {
targets: Vec<String>,
},
Learn {
skill: String,
},
Custom {
action: String,
parameters: HashMap<String, Value>,
},
}
Expand description
Behavior actions
Variantsยง
SendMessage
Send neural message
SeekResources
Seek energy/resources
Reproduce
Reproduce with another organism
Evolve
Evolve/mutate
Rest
Rest/recuperate
Explore
Explore environment
Socialize
Socialize with others
Learn
Learn new skill
Custom
Custom action
Trait Implementationsยง
Sourceยงimpl Clone for BehaviorAction
impl Clone for BehaviorAction
Sourceยงfn clone(&self) -> BehaviorAction
fn clone(&self) -> BehaviorAction
Returns a duplicate of the value. Read more
1.0.0 ยท 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 BehaviorAction
impl Debug for BehaviorAction
Sourceยงimpl<'de> Deserialize<'de> for BehaviorAction
impl<'de> Deserialize<'de> for BehaviorAction
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 BehaviorAction
impl RefUnwindSafe for BehaviorAction
impl Send for BehaviorAction
impl Sync for BehaviorAction
impl Unpin for BehaviorAction
impl UnwindSafe for BehaviorAction
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