Struct ark_api::behavior::LocalModuleRegistration
source · [−]pub struct LocalModuleRegistration {
pub behavior_infos: Vec<LocalBehaviorRegistration, Global>,
}
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, Global>
Trait Implementations
sourceimpl Clone for LocalModuleRegistration
impl Clone for LocalModuleRegistration
sourcefn clone(&self) -> LocalModuleRegistration
fn clone(&self) -> LocalModuleRegistration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LocalModuleRegistration
impl Debug for LocalModuleRegistration
sourceimpl<'de> Deserialize<'de> for LocalModuleRegistration
impl<'de> Deserialize<'de> for LocalModuleRegistration
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<LocalModuleRegistration, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LocalModuleRegistration, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<LocalModuleRegistration> for LocalModuleRegistration
impl PartialEq<LocalModuleRegistration> for LocalModuleRegistration
sourcefn eq(&self, other: &LocalModuleRegistration) -> bool
fn eq(&self, other: &LocalModuleRegistration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for LocalModuleRegistration
impl Serialize for LocalModuleRegistration
sourcefn 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
impl Eq for LocalModuleRegistration
impl StructuralEq for LocalModuleRegistration
impl StructuralPartialEq for LocalModuleRegistration
Auto Trait Implementations
impl RefUnwindSafe for LocalModuleRegistration
impl Send for LocalModuleRegistration
impl Sync for LocalModuleRegistration
impl Unpin for LocalModuleRegistration
impl UnwindSafe for LocalModuleRegistration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more