pub trait Qualifiable: From<String> + Deref<Target = str> + Validatable {
    // Required method
    fn prefix() -> &'static str;

    // Provided methods
    fn combine(method: Option<&str>, entity: &str) -> Self { ... }
    fn split(&self) -> (Option<&str>, &str) { ... }
    fn get_method(&self) -> Option<&str> { ... }
    fn default_method(&self, method: Option<&str>) -> Self { ... }
    fn replace_method(&self, method: Option<&str>) -> Self { ... }
    fn remove_method(&self, method: &str) -> Self { ... }
    fn from_str(entity: &str) -> Result<Self, ValidationError> { ... }
    fn is_fully_qualified(&self) -> bool { ... }
    fn to_qualified(&self, method: &str) -> Result<Self, ValidationError> { ... }
    fn to_unqualified(&self) -> Self { ... }
}
Expand description

An identifier which can be qualified with a prefix and method

Required Methods§

source

fn prefix() -> &'static str

Provided Methods§

source

fn combine(method: Option<&str>, entity: &str) -> Self

source

fn split(&self) -> (Option<&str>, &str)

source

fn get_method(&self) -> Option<&str>

source

fn default_method(&self, method: Option<&str>) -> Self

source

fn replace_method(&self, method: Option<&str>) -> Self

source

fn remove_method(&self, method: &str) -> Self

source

fn from_str(entity: &str) -> Result<Self, ValidationError>

source

fn is_fully_qualified(&self) -> bool

source

fn to_qualified(&self, method: &str) -> Result<Self, ValidationError>

source

fn to_unqualified(&self) -> Self

Object Safety§

This trait is not object safe.

Implementors§