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<'a>(&'a self) -> (Option<&'a str>, &'a str) { ... }
    fn get_method<'a>(&'a self) -> Option<&'a 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<'a>(&'a self) -> (Option<&'a str>, &'a str)

source

fn get_method<'a>(&'a self) -> Option<&'a 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

Implementors§