pub struct Convention {
pub repo: String,
pub dimension: String,
pub key: String,
pub rule: String,
pub generic: String,
pub support: usize,
pub total: usize,
pub unit: String,
pub repos: Vec<String>,
pub exemplars: Vec<String>,
pub counterexamples: Vec<String>,
pub origin: Origin,
}Fields§
§repo: StringRepo the convention holds in, or ORG for the org baseline.
dimension: Stringnaming, signatures, models, errors, layout, logging, config, libraries,
testing.
key: StringStable identity of the measured choice, shared across repos (naming:functions:snake_case).
rule: String§generic: StringThe rule without repo-specific counts, names or paths (used for the org baseline).
support: usize§total: usize§unit: StringWhat support and total count, e.g. functions with parameters.
repos: Vec<String>Org baseline only: the repositories that share it.
exemplars: Vec<String>path:line of representative, central instances.
counterexamples: Vec<String>path:line of instances that deviate.
origin: OriginImplementations§
Source§impl Convention
impl Convention
Trait Implementations§
Source§impl Clone for Convention
impl Clone for Convention
Source§impl Debug for Convention
impl Debug for Convention
Source§impl<'de> Deserialize<'de> for Convention
impl<'de> Deserialize<'de> for Convention
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 PartialEq for Convention
impl PartialEq for Convention
Source§impl Serialize for Convention
impl Serialize for Convention
impl StructuralPartialEq for Convention
Auto Trait Implementations§
impl Forget for Convention
impl Freeze for Convention
impl RefUnwindSafe for Convention
impl Send for Convention
impl Sync for Convention
impl Unpin for Convention
impl UnsafeUnpin for Convention
impl UnwindSafe for Convention
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