pub struct BehaviorModuleRegistration {
pub name: String,
pub id: Option<BehaviorModuleId>,
pub behavior_infos: Vec<BehaviorRegistration, Global>,
}Expand description
Contains all registration info for an external behavior module
Usage
Through list_modules, a controller module can retrieve
a list of all registered behaviors. The type id contained in each BehaviorRegistration can
then be used with instance_create to create new instances.
Fields§
§name: StringThe name of the behavior module
id: Option<BehaviorModuleId>The ModuleDescCid of the module that implements the behavior(s)
behavior_infos: Vec<BehaviorRegistration, Global>The list of behaviors implemented by the behavior module
Trait Implementations§
source§impl Clone for BehaviorModuleRegistration
impl Clone for BehaviorModuleRegistration
source§fn clone(&self) -> BehaviorModuleRegistration
fn clone(&self) -> BehaviorModuleRegistration
Returns a copy 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 BehaviorModuleRegistration
impl Debug for BehaviorModuleRegistration
source§impl<'de> Deserialize<'de> for BehaviorModuleRegistration
impl<'de> Deserialize<'de> for BehaviorModuleRegistration
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BehaviorModuleRegistration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<BehaviorModuleRegistration, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<BehaviorModuleRegistration> for BehaviorModuleRegistration
impl PartialEq<BehaviorModuleRegistration> for BehaviorModuleRegistration
source§fn eq(&self, other: &BehaviorModuleRegistration) -> bool
fn eq(&self, other: &BehaviorModuleRegistration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BehaviorModuleRegistration
impl Serialize for BehaviorModuleRegistration
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more