pub struct FeatureResult {
pub value: Value,
pub on: bool,
pub off: bool,
pub experiment: Option<Experiment>,
pub experiment_result: Option<ExperimentResult>,
pub source: String,
}Fields§
§value: Value§on: bool§off: bool§experiment: Option<Experiment>§experiment_result: Option<ExperimentResult>§source: StringImplementations§
Source§impl FeatureResult
impl FeatureResult
pub fn value_as<T>(&self) -> Result<T, GrowthbookError>where
for<'a> T: Deserialize<'a>,
pub fn new(value: Value, on: bool, source: String) -> Self
pub fn force(value: Value) -> Self
pub fn experiment( value: Value, experiment: Experiment, experiment_result: ExperimentResult, ) -> Self
pub fn from_default_value(option_value: Option<Value>) -> Self
pub fn prerequisite() -> Self
pub fn cyclic_prerequisite() -> Self
pub fn unknown_feature() -> Self
Trait Implementations§
Source§impl Clone for FeatureResult
impl Clone for FeatureResult
Source§fn clone(&self) -> FeatureResult
fn clone(&self) -> FeatureResult
Returns a duplicate of the value. Read more
1.0.0 · 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 FeatureResult
impl Debug for FeatureResult
Auto Trait Implementations§
impl Freeze for FeatureResult
impl RefUnwindSafe for FeatureResult
impl Send for FeatureResult
impl Sync for FeatureResult
impl Unpin for FeatureResult
impl UnwindSafe for FeatureResult
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