pub enum ObjectKey {
Schema(Identifier),
Table(QualifiedName),
Index(QualifiedName),
Sequence(QualifiedName),
}Expand description
Identifier for one IR object in a SourceTree.
Variants§
Schema(Identifier)
A schema, identified by its name.
Table(QualifiedName)
A table.
Index(QualifiedName)
An index.
Sequence(QualifiedName)
A sequence.
Implementations§
Source§impl ObjectKey
impl ObjectKey
Sourcepub const fn kind_name(&self) -> &'static str
pub const fn kind_name(&self) -> &'static str
Lowercase kind name (schema / table / index / sequence).
Sourcepub const fn kind_plural(&self) -> &'static str
pub const fn kind_plural(&self) -> &'static str
Plural form used by some layout profiles (schemas / tables / etc.).
Sourcepub const fn schema(&self) -> &Identifier
pub const fn schema(&self) -> &Identifier
Schema name component:
Schema(s)—sitselfTable(q) / Index(q) / Sequence(q)—q.schema
Sourcepub const fn bare_name(&self) -> &Identifier
pub const fn bare_name(&self) -> &Identifier
Bare-name component:
Schema(s)—sitself- other variants —
q.name
Trait Implementations§
impl Eq for ObjectKey
impl StructuralPartialEq for ObjectKey
Auto Trait Implementations§
impl Freeze for ObjectKey
impl RefUnwindSafe for ObjectKey
impl Send for ObjectKey
impl Sync for ObjectKey
impl Unpin for ObjectKey
impl UnsafeUnpin for ObjectKey
impl UnwindSafe for ObjectKey
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,
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