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

Method value_variants

crates/cli/src/util.rs:212–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211impl clap::ValueEnum for ModuleLanguage {
212 fn value_variants<'a>() -> &'a [Self] {
213 &[Self::Csharp, Self::Rust, Self::Javascript, Self::Cpp]
214 }
215 fn to_possible_value(&self) -> Option<clap::builder::PossibleValue> {
216 match self {
217 Self::Csharp => Some(clap::builder::PossibleValue::new("csharp").aliases(["c#", "cs", "C#", "CSharp"])),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected