pub enum LimitSyntax {
LimitOffset,
CommaOffset,
FetchFirst,
}Expand description
Surface syntax used to write a canonical Limit.
Variants§
LimitOffset
Source used the LIMIT OFFSET spelling.
CommaOffset
MySQL/MariaDB/SQLite LIMIT <offset>, <count> — the comma spelling of
LIMIT <count> OFFSET <offset> (the offset binds first, the count second). The
same row limit, folded onto the canonical Limit shape; this variant records
the comma spelling so a source-fidelity render replays LIMIT <offset>, <count>
while a target re-spell and the redacted fingerprint emit the canonical
LIMIT <count> OFFSET <offset>.
FetchFirst
Source used the FETCH FIRST spelling.
Trait Implementations§
Source§impl Clone for LimitSyntax
impl Clone for LimitSyntax
Source§fn clone(&self) -> LimitSyntax
fn clone(&self) -> LimitSyntax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LimitSyntax
Source§impl Debug for LimitSyntax
impl Debug for LimitSyntax
Source§impl<'de> Deserialize<'de> for LimitSyntax
impl<'de> Deserialize<'de> for LimitSyntax
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 LimitSyntax
Source§impl Hash for LimitSyntax
impl Hash for LimitSyntax
Source§impl PartialEq for LimitSyntax
impl PartialEq for LimitSyntax
Source§impl Serialize for LimitSyntax
impl Serialize for LimitSyntax
impl StructuralPartialEq for LimitSyntax
Auto Trait Implementations§
impl Freeze for LimitSyntax
impl RefUnwindSafe for LimitSyntax
impl Send for LimitSyntax
impl Sync for LimitSyntax
impl Unpin for LimitSyntax
impl UnsafeUnpin for LimitSyntax
impl UnwindSafe for LimitSyntax
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