Skip to main content

ApiPath

Trait ApiPath 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl ApiPath for EncryptedPEPJSONValue

Source§

fn path_segment() -> &'static str

Source§

impl ApiPath for LongEncryptedAttribute

Source§

fn path_segment() -> &'static str

Source§

impl ApiPath for LongEncryptedPseudonym

Source§

fn path_segment() -> &'static str

Source§

impl ApiPath for EncryptedRecord

Source§

fn path_segment() -> &'static str

Source§

impl ApiPath for LongEncryptedRecord

Source§

fn path_segment() -> &'static str

Source§

impl ApiPath for EncryptedAttribute

Source§

fn path_segment() -> &'static str

Source§

impl ApiPath for EncryptedPseudonym

Source§

fn path_segment() -> &'static str

Implementors§