pub trait ApiPath {
// Required method
fn path_segment() -> &'static str;
}Expand description
Trait for encrypted types to provide their API path segment. The path format is: /{operation}[_batch]/{type_segment} Examples: /pseudonymize/pseudonym, /rekey_batch/long_attribute, /transcrypt/json
Required Methods§
Sourcefn path_segment() -> &'static str
fn path_segment() -> &'static str
Returns the full path segment for this encrypted type (e.g., “pseudonym”, “long_attribute”, “json”).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.