pub struct DiscoverCase {
pub name: String,
pub mode: RunMode,
pub selected: bool,
pub elapsed_s: Option<Elapsed>,
}
Expand description
A test case was found
The order these are returned in is unspecified and is unrelated to the order they are run in.
Fields§
§name: String
§mode: RunMode
§selected: bool
Whether selected to be run by the user
elapsed_s: Option<Elapsed>
Implementations§
Source§impl DiscoverCase
impl DiscoverCase
pub fn to_jsonline(&self) -> String
Available on crate feature
json
only.Trait Implementations§
Source§impl Clone for DiscoverCase
impl Clone for DiscoverCase
Source§fn clone(&self) -> DiscoverCase
fn clone(&self) -> DiscoverCase
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 DiscoverCase
impl Debug for DiscoverCase
Source§impl<'de> Deserialize<'de> for DiscoverCase
impl<'de> Deserialize<'de> for DiscoverCase
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 From<DiscoverCase> for Event
impl From<DiscoverCase> for Event
Source§fn from(inner: DiscoverCase) -> Self
fn from(inner: DiscoverCase) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DiscoverCase
impl JsonSchema for DiscoverCase
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for DiscoverCase
impl RefUnwindSafe for DiscoverCase
impl Send for DiscoverCase
impl Sync for DiscoverCase
impl Unpin for DiscoverCase
impl UnwindSafe for DiscoverCase
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