pub struct SimulationReport {
pub conversations: Vec<Conversation>,
}Expand description
A run: every conversation, reported as rates.
Fields§
§conversations: Vec<Conversation>The conversations, in goal, manner and sample order.
Implementations§
Source§impl SimulationReport
impl SimulationReport
Sourcepub fn measured_count(&self) -> usize
pub fn measured_count(&self) -> usize
How many conversations ran.
Sourcepub fn violations(&self) -> usize
pub fn violations(&self) -> usize
Broken guarantees over the whole run: zero, or a defect.
Sourcepub fn worst(&self, count: usize) -> Vec<&Conversation>
pub fn worst(&self, count: usize) -> Vec<&Conversation>
The count worst conversations: guarantees broken, then goals missed, then length.
Trait Implementations§
Source§impl Clone for SimulationReport
impl Clone for SimulationReport
Source§impl Debug for SimulationReport
impl Debug for SimulationReport
Source§impl Default for SimulationReport
impl Default for SimulationReport
Source§impl<'de> Deserialize<'de> for SimulationReport
impl<'de> Deserialize<'de> for SimulationReport
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimulationReport
impl PartialEq for SimulationReport
Source§impl Serialize for SimulationReport
impl Serialize for SimulationReport
impl StructuralPartialEq for SimulationReport
Auto Trait Implementations§
impl Freeze for SimulationReport
impl RefUnwindSafe for SimulationReport
impl Send for SimulationReport
impl Sync for SimulationReport
impl Unpin for SimulationReport
impl UnsafeUnpin for SimulationReport
impl UnwindSafe for SimulationReport
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