pub trait Qualified: Display + Sized {
// Required method
fn new<A: Into<Authority>, N: Into<Name>>(authority: A, name: N) -> Self;
// Provided methods
fn private<N: Into<Name>>(name: N) -> Self { ... }
fn parse_encoded(schema_name: &str) -> Result<Self, InvalidNameError> { ... }
fn encoded(&self) -> String { ... }
}Expand description
Functions for creating qualified names
Required Methods§
Provided Methods§
Sourcefn private<N: Into<Name>>(name: N) -> Self
fn private<N: Into<Name>>(name: N) -> Self
Creates a name that is not meant to be shared with other developers or projects.
Sourcefn parse_encoded(schema_name: &str) -> Result<Self, InvalidNameError>
fn parse_encoded(schema_name: &str) -> Result<Self, InvalidNameError>
Parses a schema name that was previously encoded via
Self::encoded().
§Errors
Returns InvalidNameError if the name contains invalid escape
sequences or contains more than two periods.
Sourcefn encoded(&self) -> String
fn encoded(&self) -> String
Encodes this schema name such that the authority and name can be
safely parsed using Self::parse_encoded.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.