Struct spacetimedb_lib::ReducerDef
source · pub struct ReducerDef {
pub name: String,
pub args: Vec<ProductTypeElement>,
}Fields§
§name: String§args: Vec<ProductTypeElement>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 ProductValue ) -> impl Serialize + 'a
pub fn deserialize( ty: TypeInSpace<'_, Self> ) -> impl for<'de> DeserializeSeed<'de, Output = ProductValue> + '_
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 moresource§impl Debug for ReducerDef
impl Debug for ReducerDef
source§impl<'de> Deserialize<'de> for ReducerDef
impl<'de> Deserialize<'de> for ReducerDef
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Auto Trait Implementations§
impl RefUnwindSafe for ReducerDef
impl Send for ReducerDef
impl Sync for ReducerDef
impl Unpin for ReducerDef
impl UnwindSafe for ReducerDef
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