Struct questdb::ingress::ColumnName
source · [−]pub struct ColumnName<'a> { /* private fields */ }
Expand description
A validated column 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> ColumnName<'a>
impl<'a> ColumnName<'a>
sourcepub fn new_unchecked(name: &'a str) -> Self
pub fn new_unchecked(name: &'a str) -> Self
Construct an unvalidated column name.
This breaks API encapsulation and is only intended for use when the the string was already previously validated.
Invalid column names will be rejected by the QuestDB server.
Trait Implementations
sourceimpl<'a> Clone for ColumnName<'a>
impl<'a> Clone for ColumnName<'a>
sourcefn clone(&self) -> ColumnName<'a>
fn clone(&self) -> ColumnName<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> TryFrom<&'a str> for ColumnName<'a>
impl<'a> TryFrom<&'a str> for ColumnName<'a>
impl<'a> Copy for ColumnName<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ColumnName<'a>
impl<'a> Send for ColumnName<'a>
impl<'a> Sync for ColumnName<'a>
impl<'a> Unpin for ColumnName<'a>
impl<'a> UnwindSafe for ColumnName<'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