pub enum SchemaReference<'a> {
Bare {
schema: Cow<'a, str>,
},
Full {
schema: Cow<'a, str>,
catalog: Cow<'a, str>,
},
}
Variants§
Implementations§
source§impl SchemaReference<'_>
impl SchemaReference<'_>
sourcepub fn schema_name(&self) -> &str
pub fn schema_name(&self) -> &str
Get only the schema name that this references.
Trait Implementations§
source§impl<'a> Clone for SchemaReference<'a>
impl<'a> Clone for SchemaReference<'a>
source§fn clone(&self) -> SchemaReference<'a>
fn clone(&self) -> SchemaReference<'a>
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<'a> Debug for SchemaReference<'a>
impl<'a> Debug for SchemaReference<'a>
source§impl Display for SchemaReference<'_>
impl Display for SchemaReference<'_>
source§impl<'a> From<&'a SchemaReference<'static>> for SchemaReference<'a>
impl<'a> From<&'a SchemaReference<'static>> for SchemaReference<'a>
source§fn from(value: &'a OwnedSchemaReference) -> Self
fn from(value: &'a OwnedSchemaReference) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for SchemaReference<'a>
impl<'a> Hash for SchemaReference<'a>
source§impl<'a> Ord for SchemaReference<'a>
impl<'a> Ord for SchemaReference<'a>
source§fn cmp(&self, other: &SchemaReference<'a>) -> Ordering
fn cmp(&self, other: &SchemaReference<'a>) -> 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<'a> PartialEq<SchemaReference<'a>> for SchemaReference<'a>
impl<'a> PartialEq<SchemaReference<'a>> for SchemaReference<'a>
source§fn eq(&self, other: &SchemaReference<'a>) -> bool
fn eq(&self, other: &SchemaReference<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<SchemaReference<'a>> for SchemaReference<'a>
impl<'a> PartialOrd<SchemaReference<'a>> for SchemaReference<'a>
source§fn partial_cmp(&self, other: &SchemaReference<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SchemaReference<'a>) -> 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 moreimpl<'a> Eq for SchemaReference<'a>
impl<'a> StructuralEq for SchemaReference<'a>
impl<'a> StructuralPartialEq for SchemaReference<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SchemaReference<'a>
impl<'a> Send for SchemaReference<'a>
impl<'a> Sync for SchemaReference<'a>
impl<'a> Unpin for SchemaReference<'a>
impl<'a> UnwindSafe for SchemaReference<'a>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.