pub struct SimulationRun {Show 22 fields
pub id: String,
pub project_id: String,
pub status: i32,
pub agent_description: String,
pub error: String,
pub created_at: Option<Timestamp>,
pub jobs: Vec<Job>,
pub agent_name: String,
pub scenario_group: Option<ScenarioGroup>,
pub ended_at: Option<Timestamp>,
pub job_count: i32,
pub passed_count: i32,
pub failed_count: i32,
pub num_simulations: i32,
pub usage: Option<Usage>,
pub concurrency: i32,
pub mode: i32,
pub metrics: Option<RunMetrics>,
pub summary_zstd: Vec<u8>,
pub issue_count: Option<i32>,
pub ci: Option<Ci>,
pub sampling: Option<SamplingOptions>,
}Fields§
§id: String§project_id: String§status: i32§agent_description: String§error: String§created_at: Option<Timestamp>§jobs: Vec<Job>§agent_name: String§scenario_group: Option<ScenarioGroup>§ended_at: Option<Timestamp>§job_count: i32§passed_count: i32§failed_count: i32§num_simulations: i32§usage: Option<Usage>Aggregate usage across all jobs in this run (sum of Job.usage).
concurrency: i32Maximum simulate jobs running in parallel for this run (0 = server default).
mode: i32Conversation mode for every job in this run; unspecified = TEXT.
metrics: Option<RunMetrics>Run-level aggregates over this run’s jobs.
summary_zstd: Vec<u8>zstd-compressed SimulationRunSummary: decompress, then proto.Unmarshal. Compressed by default so the blob ships as-is on every hop.
issue_count: Option<i32>How many issues the stored summary flagged. Present only once a summary landed — absent and 0 differ (“never summarized” vs “no issues”) — and List responses carry it without the summary blob itself.
ci: Option<Ci>The pipeline this run came from; unset when it did not come from one.
sampling: Option<SamplingOptions>Absent when the run ran each scenario once and required it to pass.
Implementations§
Source§impl SimulationRun
impl SimulationRun
Sourcepub fn status(&self) -> Status
pub fn status(&self) -> Status
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: Status)
pub fn set_status(&mut self, value: Status)
Sets status to the provided enum value.
Sourcepub fn mode(&self) -> SimulationMode
pub fn mode(&self) -> SimulationMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: SimulationMode)
pub fn set_mode(&mut self, value: SimulationMode)
Sets mode to the provided enum value.
Sourcepub fn issue_count(&self) -> i32
pub fn issue_count(&self) -> i32
Returns the value of issue_count, or the default value if issue_count is unset.
Trait Implementations§
Source§impl Clone for SimulationRun
impl Clone for SimulationRun
Source§impl Debug for SimulationRun
impl Debug for SimulationRun
Source§impl Default for SimulationRun
impl Default for SimulationRun
§impl<'de> Deserialize<'de> for SimulationRun
impl<'de> Deserialize<'de> for SimulationRun
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for SimulationRun
impl Message for SimulationRun
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.