pub struct TableRef {
pub schema: &'static str,
pub table: &'static str,
pub alias: Option<&'static str>,
}Fields§
§schema: &'static str§table: &'static str§alias: Option<&'static str>Implementations§
Source§impl TableRef
impl TableRef
pub const fn new(schema: &'static str, table: &'static str) -> Self
pub const fn with_alias( schema: &'static str, table: &'static str, alias: &'static str, ) -> Self
pub fn for_entity<E: Entity>() -> Self
pub fn for_entity_as<E: Entity>(alias: &'static str) -> Self
pub const fn as_alias(self, alias: &'static str) -> Self
pub const fn without_alias(self) -> Self
pub const fn reference_name(&self) -> &'static str
Trait Implementations§
impl Copy for TableRef
impl Eq for TableRef
impl StructuralPartialEq for TableRef
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§
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