pub struct EvaluatedDecision { /* private fields */ }Expand description
Represents an evaluated decision
Implementations§
Source§impl EvaluatedDecision
impl EvaluatedDecision
Sourcepub fn decision_key(&self) -> i64
pub fn decision_key(&self) -> i64
Returns the unique key identifying the evaluated decision
§Returns
An i64 representing the unique key of the evaluated decision
Sourcepub fn decision_id(&self) -> &str
pub fn decision_id(&self) -> &str
Returns the ID of the decision which was evaluated
§Returns
A string slice (&str) representing the ID of the evaluated decision
Sourcepub fn decision_name(&self) -> &str
pub fn decision_name(&self) -> &str
Returns the name of the decision which was evaluated
§Returns
A string slice (&str) representing the name of the evaluated decision
Sourcepub fn decision_version(&self) -> i32
pub fn decision_version(&self) -> i32
Returns the version of the decision which was evaluated
§Returns
An i32 representing the version of the evaluated decision
Sourcepub fn decision_type(&self) -> &str
pub fn decision_type(&self) -> &str
Returns the type of the decision which was evaluated
§Returns
A string slice (&str) representing the type of the evaluated decision
Sourcepub fn decision_output(&self) -> &str
pub fn decision_output(&self) -> &str
Returns the JSON output of the evaluated decision
The output is a JSON-formatted string representing the decision result
§Returns
Sourcepub fn matched_rules(&self) -> &[MatchedDecisionRule]
pub fn matched_rules(&self) -> &[MatchedDecisionRule]
A string slice (&str) representing the JSON output of the evaluated decision
Returns a slice containing all rules that matched during decision evaluation
§Returns
A slice (&[MatchedDecisionRule]) containing all matched rules
Sourcepub fn evaluated_inputs(&self) -> &[EvaluatedDecisionInput]
pub fn evaluated_inputs(&self) -> &[EvaluatedDecisionInput]
Returns a slice containing all inputs that were evaluated as part of the decision
§Returns
A slice (&[EvaluatedDecisionInput]) containing all evaluated inputs
Trait Implementations§
Source§impl Clone for EvaluatedDecision
impl Clone for EvaluatedDecision
Source§fn clone(&self) -> EvaluatedDecision
fn clone(&self) -> EvaluatedDecision
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EvaluatedDecision
impl RefUnwindSafe for EvaluatedDecision
impl Send for EvaluatedDecision
impl Sync for EvaluatedDecision
impl Unpin for EvaluatedDecision
impl UnwindSafe for EvaluatedDecision
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request