pub struct Rec<'a> {Show 13 fields
pub path: &'a str,
pub normative: bool,
pub tracked: bool,
pub generated: bool,
pub module: bool,
pub directory: bool,
pub arbitrary_content: Option<bool>,
pub tags: HashSet<&'a str>,
pub indicativeness: f32,
pub variations: Option<Vec<&'a str>>,
pub regex: Option<RegexEq>,
pub description: &'a str,
pub sample_content: &'a str,
}Expand description
The shared version of Record,
where you will find more documentation.
Fields§
§path: &'a str§normative: bool§tracked: bool§generated: bool§module: bool§directory: bool§arbitrary_content: Option<bool>§indicativeness: f32§variations: Option<Vec<&'a str>>§regex: Option<RegexEq>§description: &'a str§sample_content: &'a strImplementations§
Trait Implementations§
Source§impl Serialize for Rec<'_>
We serialize this to only its path
as a HACK that allows us to implement serializing a crate::coverage::Coverage
to JSON with a shortcut, using serde,
without creating and filling an additional struct
just for JSON serialization.
impl Serialize for Rec<'_>
We serialize this to only its path
as a HACK that allows us to implement serializing a crate::coverage::Coverage
to JSON with a shortcut, using serde,
without creating and filling an additional struct
just for JSON serialization.
impl Eq for Rec<'_>
Auto Trait Implementations§
impl<'a> Freeze for Rec<'a>
impl<'a> RefUnwindSafe for Rec<'a>
impl<'a> Send for Rec<'a>
impl<'a> Sync for Rec<'a>
impl<'a> Unpin for Rec<'a>
impl<'a> UnwindSafe for Rec<'a>
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