Trait indy_utils::qualifiable::Qualifiable
source · 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