pub struct QueryParam<'a> {
pub name: &'a str,
pub value: &'a str,
}Expand description
Value for a {name:Type} query parameter.
value must be a single-quoted literal for every declared type. For
example, {n:UInt8} requires '42'. Escape quotes and backslashes using
ClickHouse syntax. Represent null as '\\N'.
Current server behavior differs from older behavior described in clickhouse-c header comments.
Fields§
§name: &'a str§value: &'a strImplementations§
Source§impl<'a> QueryParam<'a>
impl<'a> QueryParam<'a>
Sourcepub const fn new(name: &'a str, value: &'a str) -> Self
pub const fn new(name: &'a str, value: &'a str) -> Self
Creates a parameter. value must be single-quoted as described in
QueryParam documentation.
Trait Implementations§
Source§impl<'a> Clone for QueryParam<'a>
impl<'a> Clone for QueryParam<'a>
impl<'a> Copy for QueryParam<'a>
Source§impl<'a> Debug for QueryParam<'a>
impl<'a> Debug for QueryParam<'a>
impl<'a> Eq for QueryParam<'a>
Source§impl<'a> PartialEq for QueryParam<'a>
impl<'a> PartialEq for QueryParam<'a>
impl<'a> StructuralPartialEq for QueryParam<'a>
Auto Trait Implementations§
impl<'a> Freeze for QueryParam<'a>
impl<'a> RefUnwindSafe for QueryParam<'a>
impl<'a> Send for QueryParam<'a>
impl<'a> Sync for QueryParam<'a>
impl<'a> Unpin for QueryParam<'a>
impl<'a> UnsafeUnpin for QueryParam<'a>
impl<'a> UnwindSafe for QueryParam<'a>
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