pub enum Rewrite {
Identity,
Replaced(String),
}Expand description
A no-op or trivial rewrite plan.
The rewriter is a follow-up; for the first pass, the only non-identity action is dropping whitespace. Future passes will fill in the structured transformations.
Variants§
Identity
Pass the query through unchanged.
Replaced(String)
A rewritten query string. Identity in this pass.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rewrite
impl RefUnwindSafe for Rewrite
impl Send for Rewrite
impl Sync for Rewrite
impl Unpin for Rewrite
impl UnsafeUnpin for Rewrite
impl UnwindSafe for Rewrite
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