pub struct SwarmBehavior {
pub behavior_id: String,
pub name: String,
pub behavior_type: SwarmBehaviorType,
pub participants: Vec<String>,
pub parameters: HashMap<String, f64>,
pub effectiveness: f64,
pub created_at: u64,
}
Expand description
Swarm behavior patterns
Fieldsยง
ยงbehavior_id: String
Behavior ID
name: String
Behavior name
behavior_type: SwarmBehaviorType
Behavior type
participants: Vec<String>
Participating organisms
parameters: HashMap<String, f64>
Behavior parameters
effectiveness: f64
Behavior effectiveness
created_at: u64
Behavior creation time
Trait Implementationsยง
Sourceยงimpl Clone for SwarmBehavior
impl Clone for SwarmBehavior
Sourceยงfn clone(&self) -> SwarmBehavior
fn clone(&self) -> SwarmBehavior
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 SwarmBehavior
impl Debug for SwarmBehavior
Sourceยงimpl<'de> Deserialize<'de> for SwarmBehavior
impl<'de> Deserialize<'de> for SwarmBehavior
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 SwarmBehavior
impl RefUnwindSafe for SwarmBehavior
impl Send for SwarmBehavior
impl Sync for SwarmBehavior
impl Unpin for SwarmBehavior
impl UnwindSafe for SwarmBehavior
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