pub struct FrameClause {
pub frame_type: FrameType,
pub start: FrameBound,
pub end: Option<FrameBound>,
pub exclude: Option<FrameExclude>,
}Expand description
Frame clause for window functions.
Fields§
§frame_type: FrameTypeFrame type (ROWS, RANGE, GROUPS).
start: FrameBoundFrame start bound.
end: Option<FrameBound>Frame end bound (if BETWEEN).
exclude: Option<FrameExclude>Exclude clause (PostgreSQL).
Implementations§
Source§impl FrameClause
impl FrameClause
Sourcepub fn to_sql(&self, db_type: DatabaseType) -> String
pub fn to_sql(&self, db_type: DatabaseType) -> String
Generate frame clause SQL.
Trait Implementations§
Source§impl Clone for FrameClause
impl Clone for FrameClause
Source§fn clone(&self) -> FrameClause
fn clone(&self) -> FrameClause
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameClause
impl Debug for FrameClause
Source§impl<'de> Deserialize<'de> for FrameClause
impl<'de> Deserialize<'de> for FrameClause
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
Source§impl PartialEq for FrameClause
impl PartialEq for FrameClause
Source§impl Serialize for FrameClause
impl Serialize for FrameClause
impl Eq for FrameClause
impl StructuralPartialEq for FrameClause
Auto Trait Implementations§
impl Freeze for FrameClause
impl RefUnwindSafe for FrameClause
impl Send for FrameClause
impl Sync for FrameClause
impl Unpin for FrameClause
impl UnwindSafe for FrameClause
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