pub struct EmbeddedSqlFragment {
pub line: u32,
pub sql_text: Option<String>,
pub recovered_placeholder_positions: Vec<(u32, u32)>,
}Expand description
A SQL fragment returned from a builder or appended to a statement builder. These are deliberately separate from executed calls: structural policies can inspect them without treating builder code as an executed DML statement.
Fields§
§line: u32§sql_text: Option<String>None records a proven SQL-builder append whose argument cannot be
recovered. Structural policies can then honor their fail-closed mode.
recovered_placeholder_positions: Vec<(u32, u32)>SQL-local positions of generated interpolation markers in sql_text.
Trait Implementations§
Source§impl Clone for EmbeddedSqlFragment
impl Clone for EmbeddedSqlFragment
Source§impl Debug for EmbeddedSqlFragment
impl Debug for EmbeddedSqlFragment
impl Eq for EmbeddedSqlFragment
Source§impl PartialEq for EmbeddedSqlFragment
impl PartialEq for EmbeddedSqlFragment
impl StructuralPartialEq for EmbeddedSqlFragment
Auto Trait Implementations§
impl Forget for EmbeddedSqlFragment
impl Freeze for EmbeddedSqlFragment
impl Move for EmbeddedSqlFragment
impl RefUnwindSafe for EmbeddedSqlFragment
impl Send for EmbeddedSqlFragmentwhere
RawVecInner: Send,
impl Sync for EmbeddedSqlFragmentwhere
RawVecInner: Sync,
impl Unpin for EmbeddedSqlFragment
impl UnsafeUnpin for EmbeddedSqlFragmentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(u32, u32)>: UnsafeUnpin,
impl UnwindSafe for EmbeddedSqlFragmentwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more