Struct google_api_proto::google::cloud::dialogflow::cx::v3::Experiment
source · pub struct Experiment {Show 15 fields
pub name: String,
pub display_name: String,
pub description: String,
pub state: i32,
pub definition: Option<Definition>,
pub rollout_config: Option<RolloutConfig>,
pub rollout_state: Option<RolloutState>,
pub rollout_failure_reason: String,
pub result: Option<Result>,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub last_update_time: Option<Timestamp>,
pub experiment_length: Option<Duration>,
pub variants_history: Vec<VariantsHistory>,
}
Expand description
Represents an experiment in an environment.
Fields§
§name: String
The name of the experiment.
Format: projects/
display_name: String
Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
description: String
The human-readable description of the experiment.
state: i32
The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.
definition: Option<Definition>
The definition of the experiment.
rollout_config: Option<RolloutConfig>
The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
rollout_state: Option<RolloutState>
State of the auto rollout process.
rollout_failure_reason: String
The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
result: Option<Result>
Inference result of the experiment.
create_time: Option<Timestamp>
Creation time of this experiment.
start_time: Option<Timestamp>
Start time of this experiment.
end_time: Option<Timestamp>
End time of this experiment.
last_update_time: Option<Timestamp>
Last update time of this experiment.
experiment_length: Option<Duration>
Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
variants_history: Vec<VariantsHistory>
The history of updates to the experiment variants.
Implementations§
Trait Implementations§
source§impl Clone for Experiment
impl Clone for Experiment
source§fn clone(&self) -> Experiment
fn clone(&self) -> Experiment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Experiment
impl Debug for Experiment
source§impl Default for Experiment
impl Default for Experiment
source§impl Message for Experiment
impl Message for Experiment
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Experiment
impl PartialEq for Experiment
source§fn eq(&self, other: &Experiment) -> bool
fn eq(&self, other: &Experiment) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Experiment
Auto Trait Implementations§
impl Freeze for Experiment
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnwindSafe for Experiment
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request