pub struct PiiFingerprintOptions { /* private fields */ }Expand description
Secret-bearing scan configuration. The key is deliberately never serializable.
Implementations§
Source§impl PiiFingerprintOptions
impl PiiFingerprintOptions
Sourcepub fn unlinkable() -> Result<Self, ProofFrameError>
pub fn unlinkable() -> Result<Self, ProofFrameError>
Generate a fresh per-run key so equal values cannot be linked across scans.
Sourcepub fn stable(
key: [u8; 32],
key_id: impl Into<String>,
) -> Result<Self, ProofFrameError>
pub fn stable( key: [u8; 32], key_id: impl Into<String>, ) -> Result<Self, ProofFrameError>
Use a caller-managed 256-bit key for stable fingerprints across runs.
Sourcepub fn stable_base64(
key: &str,
key_id: impl Into<String>,
) -> Result<Self, ProofFrameError>
pub fn stable_base64( key: &str, key_id: impl Into<String>, ) -> Result<Self, ProofFrameError>
Decode a URL-safe, unpadded base64 32-byte caller key.
Auto Trait Implementations§
impl Freeze for PiiFingerprintOptions
impl RefUnwindSafe for PiiFingerprintOptions
impl Send for PiiFingerprintOptions
impl Sync for PiiFingerprintOptions
impl Unpin for PiiFingerprintOptions
impl UnsafeUnpin for PiiFingerprintOptions
impl UnwindSafe for PiiFingerprintOptions
Blanket Implementations§
impl<T> Allocation for T
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