soma_provider_core/output.rs
1use serde_json::Value;
2
3#[derive(Debug, Clone, PartialEq)]
4pub struct ProviderOutput {
5 pub value: Value,
6}
7
8impl ProviderOutput {
9 pub fn value(value: Value) -> Self {
10 Self { value }
11 }
12
13 pub fn json(value: Value) -> Self {
14 Self::value(value)
15 }
16
17 pub fn into_value(self) -> Value {
18 self.value
19 }
20}