pub struct QualifiedName {
pub schema: Identifier,
pub name: Identifier,
}Expand description
A schema-qualified identifier — e.g., app.users or "AppSchema".users.
Fields§
§schema: IdentifierThe schema component.
name: IdentifierThe object name.
Implementations§
Source§impl QualifiedName
impl QualifiedName
Sourcepub const fn new(schema: Identifier, name: Identifier) -> Self
pub const fn new(schema: Identifier, name: Identifier) -> Self
Construct from two identifiers.
Sourcepub fn render_sql(&self) -> String
pub fn render_sql(&self) -> String
Renders as it would appear in SQL.
Trait Implementations§
Source§impl Clone for QualifiedName
impl Clone for QualifiedName
Source§fn clone(&self) -> QualifiedName
fn clone(&self) -> QualifiedName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq 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 (const: unstable) · 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
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for QualifiedName
impl PartialOrd for QualifiedName
Source§impl Serialize for QualifiedName
impl Serialize for QualifiedName
impl StructuralPartialEq for QualifiedName
Auto Trait Implementations§
impl Freeze for QualifiedName
impl RefUnwindSafe for QualifiedName
impl Send for QualifiedName
impl Sync for QualifiedName
impl Unpin for QualifiedName
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more