Trait mcai_worker_sdk::parameter::ParameterValue

source ·
pub trait ParameterValue {
    // Required method
    fn get_type_as_string() -> String;

    // Provided methods
    fn parse_value(content: Value, store: &Option<String>) -> Result<Self>
       where Self: Sized + DeserializeOwned { ... }
    fn from_store(key: &str, store_code: &str) -> Result<Value> { ... }
    fn from_value(content: Value) -> Result<Self>
       where Self: Sized + DeserializeOwned { ... }
}

Required Methods§

Provided Methods§

source

fn parse_value(content: Value, store: &Option<String>) -> Result<Self>
where Self: Sized + DeserializeOwned,

source

fn from_store(key: &str, store_code: &str) -> Result<Value>

source

fn from_value(content: Value) -> Result<Self>
where Self: Sized + DeserializeOwned,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ParameterValue for bool

source§

impl ParameterValue for f64

source§

impl ParameterValue for i64

source§

impl ParameterValue for String

source§

impl ParameterValue for Vec<String>

Implementors§