pub(crate) struct ExperimentInfo<'a> {Show 13 fields
pub(crate) slug: &'a str,
pub(crate) app_name: &'a str,
pub(crate) channel: &'a str,
pub(crate) branches: Vec<&'a str>,
pub(crate) features: Vec<&'a str>,
pub(crate) targeting: &'a str,
pub(crate) bucketing: u64,
pub(crate) is_rollout: bool,
pub(crate) user_facing_name: &'a str,
pub(crate) user_facing_description: &'a str,
pub(crate) enrollment: DateRange<'a>,
pub(crate) is_enrollment_paused: bool,
pub(crate) duration: DateRange<'a>,
}
Fields§
§slug: &'a str
§app_name: &'a str
§channel: &'a str
§branches: Vec<&'a str>
§features: Vec<&'a str>
§targeting: &'a str
§bucketing: u64
§is_rollout: bool
§user_facing_name: &'a str
§user_facing_description: &'a str
§enrollment: DateRange<'a>
§is_enrollment_paused: bool
§duration: DateRange<'a>
Implementations§
source§impl<'a> ExperimentInfo<'a>
impl<'a> ExperimentInfo<'a>
pub(crate) fn enrollment(&self) -> &DateRange<'a>
pub(crate) fn active(&self) -> &DateRange<'a>
fn bucketing_percent(&self) -> String
Trait Implementations§
source§impl<'a> Debug for ExperimentInfo<'a>
impl<'a> Debug for ExperimentInfo<'a>
source§impl<'a> Default for ExperimentInfo<'a>
impl<'a> Default for ExperimentInfo<'a>
source§fn default() -> ExperimentInfo<'a>
fn default() -> ExperimentInfo<'a>
Returns the “default value” for a type. Read more
source§impl<'a> Serialize for ExperimentInfo<'a>
impl<'a> Serialize for ExperimentInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExperimentInfo<'a>
impl<'a> RefUnwindSafe for ExperimentInfo<'a>
impl<'a> Send for ExperimentInfo<'a>
impl<'a> Sync for ExperimentInfo<'a>
impl<'a> Unpin for ExperimentInfo<'a>
impl<'a> UnwindSafe for ExperimentInfo<'a>
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more