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

Method args_bsatn

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

Source from the content-addressed store, hash-verified

42 }
43 #[allow(clippy::clone_on_copy)]
44 fn args_bsatn(&self) -> Result<Vec<u8>, __sats::bsatn::EncodeError> {
45 match self {
46 Reducer::Add { name } => __sats::bsatn::to_vec(&add_reducer::AddArgs { name: name.clone() }),
47 Reducer::SayHello => __sats::bsatn::to_vec(&say_hello_reducer::SayHelloArgs {}),
48 _ => unreachable!(),
49 }
50 }
51}
52
53#[derive(Default, Debug)]

Callers

nothing calls this directly

Calls 2

to_vecFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected