Struct bonsaidb_core::schema::Name
source · pub struct Name { /* private fields */ }
Expand description
A schema name. Cloning is inexpensive.
Implementations§
source§impl Name
impl Name
sourcepub fn parse_encoded(encoded: &str) -> Result<Self, InvalidNameError>
pub fn parse_encoded(encoded: &str) -> Result<Self, InvalidNameError>
Parses a name that was previously encoded via Self::encoded()
.
Errors
Returns InvalidNameError
if the name contains invalid escape
sequences.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
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 Ord for Name
impl Ord for Name
source§impl PartialEq<Name> for Name
impl PartialEq<Name> for Name
source§impl PartialOrd<Name> for Name
impl PartialOrd<Name> for Name
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 moreimpl Eq for Name
impl StructuralEq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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