MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / reducer_name

Method reducer_name

templates/basic-cpp/src/module_bindings/mod.rs:36–42  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

34
35impl __sdk::Reducer for Reducer {
36 fn reducer_name(&self) -> &'static str {
37 match self {
38 Reducer::Add { .. } => "add",
39 Reducer::SayHello => "say_hello",
40 _ => unreachable!(),
41 }
42 }
43 #[allow(clippy::clone_on_copy)]
44 fn args_bsatn(&self) -> Result<Vec<u8>, __sats::bsatn::EncodeError> {
45 match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected