MCPcopy Create free account
hub / github.com/Shopify/function-examples / from_str

Method from_str

checkout/rust/payment-customization/default/src/run.rs:11–13  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

9
10impl Configuration {
11 fn from_str(value: &str) -> Self {
12 serde_json::from_str(value).expect("Unable to parse configuration value from metafield")
13 }
14}
15
16#[shopify_function_target(query_path = "src/run.graphql", schema_path = "schema.graphql")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected