pub trait RequestPseudonymizer {
// Required methods
fn protect(&mut self, input: &str) -> Result<String, CodecErrorCode>;
fn validate_token_shapes(
&mut self,
input: &str,
) -> Result<(), CodecErrorCode>;
// Provided method
fn protect_with_prefix_cache_write_mode(
&mut self,
input: &str,
mode: PrefixCacheWriteMode,
) -> Result<String, CodecErrorCode> { ... }
}Expand description
Staged request protection boundary supplied by I4.
Required Methods§
Sourcefn protect(&mut self, input: &str) -> Result<String, CodecErrorCode>
fn protect(&mut self, input: &str) -> Result<String, CodecErrorCode>
Protects one complete decoded logical value against the staged transaction.
Sourcefn validate_token_shapes(&mut self, input: &str) -> Result<(), CodecErrorCode>
fn validate_token_shapes(&mut self, input: &str) -> Result<(), CodecErrorCode>
Proves that every Gaze-shaped token belongs to the staged transaction.
Provided Methods§
Sourcefn protect_with_prefix_cache_write_mode(
&mut self,
input: &str,
mode: PrefixCacheWriteMode,
) -> Result<String, CodecErrorCode>
fn protect_with_prefix_cache_write_mode( &mut self, input: &str, mode: PrefixCacheWriteMode, ) -> Result<String, CodecErrorCode>
Protects one decoded value with an explicit prefix-cache mode.
PrefixCacheWriteMode::Allow preserves the source-compatible delegation to
Self::protect. PrefixCacheWriteMode::Suppress fails closed unless an
implementation explicitly overrides this method with a stateless or isolated
no-read/no-write guarantee.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".