pub struct Experiments { /* private fields */ }Expand description
Manages A/B routing experiments.
Implementations§
Source§impl Experiments
impl Experiments
Sourcepub async fn list(
&self,
params: &ExperimentListParams,
req: impl Into<Option<RequestOptions>>,
) -> Result<ExperimentListPage>
pub async fn list( &self, params: &ExperimentListParams, req: impl Into<Option<RequestOptions>>, ) -> Result<ExperimentListPage>
Sourcepub fn pages(
&self,
params: ExperimentListParams,
req: Option<RequestOptions>,
) -> impl Stream<Item = Result<ExperimentListPage>> + Send + 'static
pub fn pages( &self, params: ExperimentListParams, req: Option<RequestOptions>, ) -> impl Stream<Item = Result<ExperimentListPage>> + Send + 'static
Stream one ExperimentListPage per round-trip until exhausted.
Sourcepub async fn create(
&self,
params: ExperimentCreateParams,
req: Option<RequestOptions>,
) -> Result<Experiment>
pub async fn create( &self, params: ExperimentCreateParams, req: Option<RequestOptions>, ) -> Result<Experiment>
Sourcepub async fn rollback(
&self,
experiment_id: &str,
req: Option<RequestOptions>,
) -> Result<Experiment>
pub async fn rollback( &self, experiment_id: &str, req: Option<RequestOptions>, ) -> Result<Experiment>
Sourcepub async fn results(
&self,
experiment_id: &str,
req: impl Into<Option<RequestOptions>>,
) -> Result<ExperimentResults>
pub async fn results( &self, experiment_id: &str, req: impl Into<Option<RequestOptions>>, ) -> Result<ExperimentResults>
Auto Trait Implementations§
impl Freeze for Experiments
impl !RefUnwindSafe for Experiments
impl Send for Experiments
impl Sync for Experiments
impl Unpin for Experiments
impl UnsafeUnpin for Experiments
impl !UnwindSafe for Experiments
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