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

Function run

discounts/rust/discounts-allocator/default/src/run.rs:5–12  ·  view source on GitHub ↗
(_input: input::ResponseData)

Source from the content-addressed store, hash-verified

3
4#[shopify_function_target(query_path = "src/run.graphql", schema_path = "schema.graphql")]
5fn run(_input: input::ResponseData) -> Result<output::FunctionRunResult> {
6 let no_discounts = output::FunctionRunResult {
7 line_discounts: Some(vec![]),
8 displayable_errors: Some(vec![]),
9 };
10
11 Ok(no_discounts)
12}
13
14#[cfg(test)]
15mod tests {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected