pub struct CostWarning {
pub severity: IssueSeverity,
pub message: String,
pub suggestion: String,
pub worst_case_complexity: Option<u32>,
}Expand description
Cost analysis warning
Fields§
§severity: IssueSeveritySeverity level of the warning
message: StringClear message describing the issue
suggestion: StringActionable suggestion for fixing the issue
worst_case_complexity: Option<u32>Worst-case complexity score if applicable
Trait Implementations§
Source§impl Clone for CostWarning
impl Clone for CostWarning
Source§fn clone(&self) -> CostWarning
fn clone(&self) -> CostWarning
Returns a duplicate of the value. Read more
1.0.0 · 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 CostWarning
impl Debug for CostWarning
Source§impl<'de> Deserialize<'de> for CostWarning
impl<'de> Deserialize<'de> for CostWarning
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
Auto Trait Implementations§
impl Freeze for CostWarning
impl RefUnwindSafe for CostWarning
impl Send for CostWarning
impl Sync for CostWarning
impl Unpin for CostWarning
impl UnsafeUnpin for CostWarning
impl UnwindSafe for CostWarning
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