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§
source§impl<'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§
source§impl<'a> Clone for ColumnName<'a>
impl<'a> Clone for ColumnName<'a>
source§fn clone(&self) -> ColumnName<'a>
fn clone(&self) -> ColumnName<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more