Trait indy_data_types::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(&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§
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
Object Safety§
This trait is not object safe.