pub struct QualifiedName {
pub schema: Option<Ident>,
pub name: Ident,
}Expand description
A schema-qualified name (e.g., public.users).
Fields§
§schema: Option<Ident>§name: IdentImplementations§
Source§impl QualifiedName
impl QualifiedName
pub fn new(name: Ident) -> Self
pub fn with_schema(schema: Ident, name: Ident) -> Self
Sourcepub fn name_eq(&self, other: &QualifiedName) -> bool
pub fn name_eq(&self, other: &QualifiedName) -> bool
Compare by name only, treating None schema as matching any schema.
Use this when matching ALTER TABLE targets against CREATE TABLE names,
since normalize may leave schemas inconsistent (e.g., unqualified CREATE
vs schema-qualified ALTER).
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 · 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 Display for QualifiedName
impl Display for QualifiedName
Source§impl Hash for QualifiedName
impl Hash for QualifiedName
Source§impl PartialEq for QualifiedName
impl PartialEq for QualifiedName
impl Eq 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