pub struct PrerequisiteEvent {
    pub target_flag_key: String,
    pub context: Context,
    pub prerequisite_flag: Flag,
    pub prerequisite_result: Detail<FlagValue>,
}
Expand description

A struct representing the results of an evaluation on a prerequisite flag.

Fields§

§target_flag_key: String

String representing the crate::Flag::key of the original flag being evaluated.

§context: Context

The crate::Context provided during the evaluation process.

§prerequisite_flag: Flag

The prerequisite crate::Flag that was evaluated.

§prerequisite_result: Detail<FlagValue>

The result of calling evaluate on the PrerequisiteEvent::prerequisite_flag.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.