pub struct Evaluation {
pub flag_id: String,
pub variant: Variant,
pub matched_rule_id: Option<String>,
pub reason: &'static str,
}Expand description
What an evaluation returns.
Fields§
§flag_id: StringThe flag that was evaluated.
variant: VariantResolved variant.
matched_rule_id: Option<String>Some(rule_id) if a rule fired; None if the default variant was used.
reason: &'static strOne of "rule_match", "default", "disabled".
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Evaluation
impl Debug for Evaluation
Source§impl PartialEq for Evaluation
impl PartialEq for Evaluation
Source§fn eq(&self, other: &Evaluation) -> bool
fn eq(&self, other: &Evaluation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Evaluation
impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnsafeUnpin for Evaluation
impl UnwindSafe for Evaluation
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
Mutably borrows from an owned value. Read more