pub struct NamedWindow {
pub name: String,
pub spec: WindowSpec,
}Expand description
A named window definition.
Fields§
§name: StringWindow name.
spec: WindowSpecWindow specification.
Implementations§
Source§impl NamedWindow
impl NamedWindow
Sourcepub fn new(name: impl Into<String>, spec: WindowSpec) -> Self
pub fn new(name: impl Into<String>, spec: WindowSpec) -> Self
Create a new named window.
Sourcepub fn to_sql(&self, db_type: DatabaseType) -> String
pub fn to_sql(&self, db_type: DatabaseType) -> String
Generate the WINDOW clause definition.
Trait Implementations§
Source§impl Clone for NamedWindow
impl Clone for NamedWindow
Source§fn clone(&self) -> NamedWindow
fn clone(&self) -> NamedWindow
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 NamedWindow
impl Debug for NamedWindow
Source§impl<'de> Deserialize<'de> for NamedWindow
impl<'de> Deserialize<'de> for NamedWindow
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 NamedWindow
impl PartialEq for NamedWindow
Source§impl Serialize for NamedWindow
impl Serialize for NamedWindow
impl Eq for NamedWindow
impl StructuralPartialEq for NamedWindow
Auto Trait Implementations§
impl Freeze for NamedWindow
impl RefUnwindSafe for NamedWindow
impl Send for NamedWindow
impl Sync for NamedWindow
impl Unpin for NamedWindow
impl UnwindSafe for NamedWindow
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