Struct bonsaidb_core::schema::QualifiedName
source · pub struct QualifiedName {
pub authority: Authority,
pub name: Name,
}
Expand description
A namespaced name.
Fields§
The authority that defines this name.
name: Name
The name, unique within authority
.
Trait Implementations§
source§impl Clone for QualifiedName
impl Clone for QualifiedName
source§fn clone(&self) -> QualifiedName
fn clone(&self) -> QualifiedName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QualifiedName
impl Debug for QualifiedName
source§impl<'de> Deserialize<'de> for QualifiedName
impl<'de> Deserialize<'de> for QualifiedName
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for QualifiedName
impl Display for QualifiedName
source§impl FromStr for QualifiedName
impl FromStr for QualifiedName
source§impl Hash for QualifiedName
impl Hash for QualifiedName
source§impl Ord for QualifiedName
impl Ord for QualifiedName
source§fn cmp(&self, other: &QualifiedName) -> Ordering
fn cmp(&self, other: &QualifiedName) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for QualifiedName
impl PartialEq for QualifiedName
source§fn eq(&self, other: &QualifiedName) -> bool
fn eq(&self, other: &QualifiedName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QualifiedName
impl PartialOrd for QualifiedName
source§fn partial_cmp(&self, other: &QualifiedName) -> Option<Ordering>
fn partial_cmp(&self, other: &QualifiedName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Qualified for QualifiedName
impl Qualified for QualifiedName
source§fn new<A: Into<Authority>, N: Into<Name>>(authority: A, name: N) -> Self
fn new<A: Into<Authority>, N: Into<Name>>(authority: A, name: N) -> Self
Creates a new qualified name.
source§fn 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.
source§fn 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()
. Read moresource§fn 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
.source§impl Serialize for QualifiedName
impl Serialize for QualifiedName
impl Eq for QualifiedName
impl StructuralEq for QualifiedName
impl StructuralPartialEq for QualifiedName
Auto Trait Implementations§
impl RefUnwindSafe for QualifiedName
impl Send for QualifiedName
impl Sync for QualifiedName
impl Unpin for QualifiedName
impl UnwindSafe for QualifiedName
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more