Struct zen_engine::decision::Decision
source · pub struct Decision<L>where
L: DecisionLoader,{ /* private fields */ }Implementations§
source§impl<L> Decision<L>where
L: DecisionLoader,
impl<L> Decision<L>where L: DecisionLoader,
pub fn with_loader<NL>(self, loader: Arc<NL>) -> Decision<NL>where NL: DecisionLoader,
pub async fn evaluate(&self, context: &Value) -> Result<GraphResponse, Error>
pub async fn evaluate_with_opts( &self, context: &Value, options: EvaluationOptions ) -> Result<GraphResponse, Error>
Trait Implementations§
source§impl From<Arc<DecisionContent>> for Decision<NoopLoader>
impl From<Arc<DecisionContent>> for Decision<NoopLoader>
source§fn from(value: Arc<DecisionContent>) -> Self
fn from(value: Arc<DecisionContent>) -> Self
Converts to this type from the input type.
source§impl From<DecisionContent> for Decision<NoopLoader>
impl From<DecisionContent> for Decision<NoopLoader>
source§fn from(value: DecisionContent) -> Self
fn from(value: DecisionContent) -> Self
Converts to this type from the input type.