pub struct QueryFormatter { /* private fields */ }Expand description
查询格式化器
用于将查询结构体格式化为查询字符串
Implementations§
Source§impl QueryFormatter
impl QueryFormatter
Sourcepub fn from_parser(parser: &QueryParser) -> Self
pub fn from_parser(parser: &QueryParser) -> Self
从查询解析器创建格式化器
Sourcepub fn set_multiple<T: ToParam>(&mut self, key: &str, values: &[T]) -> &mut Self
pub fn set_multiple<T: ToParam>(&mut self, key: &str, values: &[T]) -> &mut Self
Sourcepub fn format_with_prefix(&self) -> String
pub fn format_with_prefix(&self) -> String
Trait Implementations§
Source§impl Clone for QueryFormatter
impl Clone for QueryFormatter
Source§fn clone(&self) -> QueryFormatter
fn clone(&self) -> QueryFormatter
Returns a duplicate 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 moreSource§impl Debug for QueryFormatter
impl Debug for QueryFormatter
Source§impl Default for QueryFormatter
impl Default for QueryFormatter
Source§fn default() -> QueryFormatter
fn default() -> QueryFormatter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryFormatter
impl RefUnwindSafe for QueryFormatter
impl Send for QueryFormatter
impl Sync for QueryFormatter
impl Unpin for QueryFormatter
impl UnwindSafe for QueryFormatter
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