pub enum SqlPlaceholder {
QuestionMark,
NumberedQuestionMark,
DollarNumber,
}Expand description
SQL bind-parameter placeholder syntax accepted by a driver.
This describes the SQL text users must write when sending raw SQL through
RawSql. The SQL serializer uses the same
value when rendering Toasty-generated SQL.
Variants§
QuestionMark
Positional ? placeholders, where parameter order is the occurrence
order in the SQL string.
NumberedQuestionMark
Numbered ?1, ?2, … placeholders.
DollarNumber
Numbered $1, $2, … placeholders.
Trait Implementations§
Source§impl Clone for SqlPlaceholder
impl Clone for SqlPlaceholder
Source§fn clone(&self) -> SqlPlaceholder
fn clone(&self) -> SqlPlaceholder
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 SqlPlaceholder
impl Debug for SqlPlaceholder
Source§impl PartialEq for SqlPlaceholder
impl PartialEq for SqlPlaceholder
impl Copy for SqlPlaceholder
impl Eq for SqlPlaceholder
impl StructuralPartialEq for SqlPlaceholder
Auto Trait Implementations§
impl Freeze for SqlPlaceholder
impl RefUnwindSafe for SqlPlaceholder
impl Send for SqlPlaceholder
impl Sync for SqlPlaceholder
impl Unpin for SqlPlaceholder
impl UnsafeUnpin for SqlPlaceholder
impl UnwindSafe for SqlPlaceholder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.