pub struct LocalModuleRegistration {
pub behavior_infos: Vec<LocalBehaviorRegistration>,
}
Expand description
Contains all registration info for an external behavior module
During behavior module registration, behavior modules must return RegistrationInfo
as a
serialized vector of JSON bytes. Ark will validate the returned registration info and store
it internally.
A controller module can retrieve the registration info from Ark and use it to, for example, create behavior instances of a specific behavior type.
Fields§
§behavior_infos: Vec<LocalBehaviorRegistration>
Trait Implementations§
Source§impl Clone for LocalModuleRegistration
impl Clone for LocalModuleRegistration
Source§fn clone(&self) -> LocalModuleRegistration
fn clone(&self) -> LocalModuleRegistration
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 LocalModuleRegistration
impl Debug for LocalModuleRegistration
Source§impl<'de> Deserialize<'de> for LocalModuleRegistration
impl<'de> Deserialize<'de> for LocalModuleRegistration
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
Source§impl PartialEq for LocalModuleRegistration
impl PartialEq for LocalModuleRegistration
Source§impl Serialize for LocalModuleRegistration
impl Serialize for LocalModuleRegistration
impl Eq for LocalModuleRegistration
impl StructuralPartialEq for LocalModuleRegistration
Auto Trait Implementations§
impl Freeze for LocalModuleRegistration
impl RefUnwindSafe for LocalModuleRegistration
impl Send for LocalModuleRegistration
impl Sync for LocalModuleRegistration
impl Unpin for LocalModuleRegistration
impl UnwindSafe for LocalModuleRegistration
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