pub struct SuggestionEvidence {
pub code: String,
pub detail: String,
pub observed: Option<f64>,
}Expand description
One piece of trace-derived evidence behind a suggestion, e.g.
“tool http_post exceeded its 50¢ cap on 7/10 runs”.
Fields§
§code: StringShort machine code, e.g. budget_breach_rate, tool_unused.
detail: StringHuman-readable detail.
observed: Option<f64>Optional observed scalar (e.g. a breach rate of 0.7).
Trait Implementations§
Source§impl Clone for SuggestionEvidence
impl Clone for SuggestionEvidence
Source§fn clone(&self) -> SuggestionEvidence
fn clone(&self) -> SuggestionEvidence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuggestionEvidence
impl Debug for SuggestionEvidence
Source§impl<'de> Deserialize<'de> for SuggestionEvidence
impl<'de> Deserialize<'de> for SuggestionEvidence
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 SuggestionEvidence
impl PartialEq for SuggestionEvidence
Source§impl Serialize for SuggestionEvidence
impl Serialize for SuggestionEvidence
impl StructuralPartialEq for SuggestionEvidence
Auto Trait Implementations§
impl Freeze for SuggestionEvidence
impl RefUnwindSafe for SuggestionEvidence
impl Send for SuggestionEvidence
impl Sync for SuggestionEvidence
impl Unpin for SuggestionEvidence
impl UnsafeUnpin for SuggestionEvidence
impl UnwindSafe for SuggestionEvidence
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