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 moreimpl Copy for EmailMode
impl Eq for EmailMode
impl StructuralPartialEq for EmailMode
Auto Trait Implementations§
impl Freeze for EmailMode
impl RefUnwindSafe for EmailMode
impl Send for EmailMode
impl Sync for EmailMode
impl Unpin for EmailMode
impl UnsafeUnpin for EmailMode
impl UnwindSafe for EmailMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.