pub struct TableName<'a> { /* private fields */ }
Expand description
A validated table name.
This type simply wraps a &str
.
You can use it to construct it explicitly to avoid re-validating the same names over and over.
Implementations
sourceimpl<'a> TableName<'a>
impl<'a> TableName<'a>
sourcepub fn new_unchecked(name: &'a str) -> Self
pub fn new_unchecked(name: &'a str) -> Self
Construct an unvalidated table name.
This breaks API encapsulation and is only intended for use when the the string was already previously validated.
Invalid table names will be rejected by the QuestDB server.
Trait Implementations
impl<'a> Copy for TableName<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TableName<'a>
impl<'a> Send for TableName<'a>
impl<'a> Sync for TableName<'a>
impl<'a> Unpin for TableName<'a>
impl<'a> UnwindSafe for TableName<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more