pub enum EmailMode {
Raw,
Handle,
Hash,
}Expand description
Privacy mode for author emails emitted in ownership output.
Defaults to handle (local-part only, no domain) so SARIF and JSON
artifacts do not leak raw email addresses into CI pipelines.
Variants§
Raw
Show the raw email address as it appears in git history. Use for public repositories where history is already exposed.
Handle
Show the local-part only (before the @). Mailmap-resolved where possible.
Default. Balances readability and privacy.
Hash
Show a stable xxh3:<16hex> pseudonym derived from the raw email.
Non-cryptographic; suitable to keep raw emails out of CI artifacts
(SARIF, code-scanning uploads) but not as a security primitive –
a known list of org emails can be brute-forced into a rainbow table.
Use in regulated environments where even local-parts are sensitive.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EmailMode
impl<'de> Deserialize<'de> for EmailMode
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>,
Source§impl JsonSchema for EmailMode
impl JsonSchema for EmailMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more