[][src]Trait indy_utils::qualifiable::Qualifiable

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

    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 { ... } }

An identifier which can be qualified with a prefix and method

Required methods

fn prefix() -> &'static str

Loading content...

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

Loading content...

Implementors

impl Qualifiable for DidValue[src]

Loading content...