MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / to_value

Method to_value

crates/cargo-lambda-new/src/template/config.rs:26–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

24
25impl PromptValue {
26 pub fn to_value(&self) -> Value {
27 match self {
28 PromptValue::Boolean(b) => Value::scalar(*b),
29 PromptValue::String(s) => Value::scalar(s.clone()),
30 }
31 }
32}
33
34impl Default for PromptValue {

Callers 3

should_render_fileFunction · 0.80
should_ignore_fileFunction · 0.80
fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected