pub struct Category {
pub name: String,
pub matched_statuses: Vec<Status>,
pub message_regex: Option<String>,
pub trace_regex: Option<String>,
pub flaky: Option<bool>,
}Expand description
Category definition for defect classification.
Fields§
§name: StringCategory name
matched_statuses: Vec<Status>Statuses that match this category
message_regex: Option<String>Regex pattern to match against error message
trace_regex: Option<String>Regex pattern to match against stack trace
flaky: Option<bool>Whether matching tests should be marked as flaky
Implementations§
Source§impl Category
impl Category
Sourcepub fn with_status(self, status: Status) -> Self
pub fn with_status(self, status: Status) -> Self
Adds a matched status.
Sourcepub fn with_message_regex(self, regex: impl Into<String>) -> Self
pub fn with_message_regex(self, regex: impl Into<String>) -> Self
Sets the message regex pattern.
Sourcepub fn with_trace_regex(self, regex: impl Into<String>) -> Self
pub fn with_trace_regex(self, regex: impl Into<String>) -> Self
Sets the trace regex pattern.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Category
impl<'de> Deserialize<'de> for Category
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
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)