pub struct CollectionRule {
pub toolchain: Toolchain,
pub text: String,
pub source: String,
}Expand description
A runner’s collection rule: one sentence a person reads, and where it came from.
Fields§
§toolchain: ToolchainThe toolchain.
text: StringThe rule (Cargo builds `tests/*.rs` and `tests/<dir>/main.rs` (and the modules they declare)).
source: StringWhere it came from (Cargo.toml (default), pyproject.toml [tool.pytest.ini_options]).
Trait Implementations§
Source§impl Clone for CollectionRule
impl Clone for CollectionRule
Source§impl Debug for CollectionRule
impl Debug for CollectionRule
Source§impl<'de> Deserialize<'de> for CollectionRule
impl<'de> Deserialize<'de> for CollectionRule
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 CollectionRule
Source§impl JsonSchema for CollectionRule
impl JsonSchema for CollectionRule
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 moreSource§impl PartialEq for CollectionRule
impl PartialEq for CollectionRule
Source§impl Serialize for CollectionRule
impl Serialize for CollectionRule
impl StructuralPartialEq for CollectionRule
Auto Trait Implementations§
impl Freeze for CollectionRule
impl RefUnwindSafe for CollectionRule
impl Send for CollectionRule
impl Sync for CollectionRule
impl Unpin for CollectionRule
impl UnsafeUnpin for CollectionRule
impl UnwindSafe for CollectionRule
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