pub struct Placeholder(pub usize);Expand description
A positional bind-parameter placeholder.
The inner usize is the 1-based parameter index. The serializer renders
it in the target dialect’s format ($1, ?1, or ?).
§Example
use toasty_sql::serializer::Placeholder;
let p = Placeholder(3);
assert_eq!(p.0, 3);Tuple Fields§
§0: usizeAuto Trait Implementations§
impl Freeze for Placeholder
impl RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnsafeUnpin for Placeholder
impl UnwindSafe for Placeholder
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