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: WithTypespace<'a, Self>, value: &'a ProductValue ) -> impl Serialize + 'a
pub fn deserialize( ty: WithTypespace<'_, 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
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer
.Auto Trait Implementations§
impl Freeze for ReducerDef
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Satn for T
impl<T> Satn for T
source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f
.source§fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the postgres SATN data format into the formatter
f
.source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String
.source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String
.