pub struct RawSql(/* private fields */);Expand description
Wrapper for raw SQL fragments inside BoolExpr::Raw.
The type is pub (so the BoolExpr::Raw variant field doesn’t trigger
private_interfaces), but the inner String field is pub(crate).
External code can name RawSql but cannot construct it (field
inaccessible) and cannot read the SQL string — closing the raw SQL
injection hatch at the type level. Internal callers use
BoolExpr::raw() (pub(crate)).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawSql
impl RefUnwindSafe for RawSql
impl Send for RawSql
impl Sync for RawSql
impl Unpin for RawSql
impl UnsafeUnpin for RawSql
impl UnwindSafe for RawSql
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