pub struct TableRef {
pub schema: String,
pub table: String,
pub alias: Option<String>,
}Expand description
Table reference in FROM clause.
Fields§
§schema: String§table: String§alias: Option<String>Implementations§
Source§impl TableRef
impl TableRef
pub fn new(schema: impl Into<String>, table: impl Into<String>) -> Self
pub fn with_alias( schema: impl Into<String>, table: impl Into<String>, alias: Option<String>, ) -> Self
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Preferred display name for the table (alias if present).
pub fn qualified_name(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableRef
impl RefUnwindSafe for TableRef
impl Send for TableRef
impl Sync for TableRef
impl Unpin for TableRef
impl UnsafeUnpin for TableRef
impl UnwindSafe for TableRef
Blanket Implementations§
impl<T> Allocation for T
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