pub struct SqlxRestoration {
pub token: String,
pub original: String,
pub pattern: String,
pub whole: bool,
pub span: Span,
}Expand description
How to put one interpolation back.
Fields§
§token: StringThe sentinel standing for it in the masked SQL (__sqlx_token_000__).
original: StringThe interpolation as written (${ref("t")}).
pattern: StringA regex for the sentinel with the SQL written around it (WHERE __sqlx_token_000__).
whole: boolThe sentinel stands for the interpolation together with SQL around it: restoring it anywhere else would change the meaning.
span: SpanWhere the interpolation was in the input.
Trait Implementations§
Source§impl Clone for SqlxRestoration
impl Clone for SqlxRestoration
Source§impl Debug for SqlxRestoration
impl Debug for SqlxRestoration
Source§impl<'de> Deserialize<'de> for SqlxRestoration
impl<'de> Deserialize<'de> for SqlxRestoration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SqlxRestoration
Source§impl PartialEq for SqlxRestoration
impl PartialEq for SqlxRestoration
Source§impl Serialize for SqlxRestoration
impl Serialize for SqlxRestoration
impl StructuralPartialEq for SqlxRestoration
Auto Trait Implementations§
impl Forget for SqlxRestoration
impl Freeze for SqlxRestoration
impl Move for SqlxRestoration
impl RefUnwindSafe for SqlxRestoration
impl Send for SqlxRestorationwhere
RawVecInner: Send,
impl Sync for SqlxRestorationwhere
RawVecInner: Sync,
impl Unpin for SqlxRestoration
impl UnsafeUnpin for SqlxRestoration
impl UnwindSafe for SqlxRestorationwhere
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.