Struct spacetimedb_lib::ReducerDef
source · pub struct ReducerDef {
pub name: Option<Box<str>>,
pub args: Vec<ElementDef>,
}Fields§
§name: Option<Box<str>>§args: Vec<ElementDef>Implementations§
source§impl ReducerDef
impl ReducerDef
pub fn encode(&self, writer: &mut impl BufWriter)
pub fn serialize_args<'a>( ty: TypeInSpace<'a, Self>, value: &'a TupleValue ) -> impl Serialize + 'a
pub fn deserialize( ty: TypeInSpace<'_, Self> ) -> impl for<'de> DeserializeSeed<'de, Output = TupleValue> + '_
Trait Implementations§
source§impl Clone for ReducerDef
impl Clone for ReducerDef
source§fn clone(&self) -> ReducerDef
fn clone(&self) -> ReducerDef
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 more