#[repr(i32)]pub enum BoundsType {
Unspecified = 0,
Rows = 1,
Range = 2,
}
Variants§
Unspecified = 0
Rows = 1
The lower and upper bound specify how many rows before and after the current row the window should extend.
Range = 2
The lower and upper bound describe a range of values. The window should include all rows where the value of the ordering column is greater than or equal to (current_value - lower bound) and less than or equal to (current_value + upper bound). This bounds type is only valid if there is a single ordering column.
Implementations§
Source§impl BoundsType
impl BoundsType
Source§impl BoundsType
impl BoundsType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for BoundsType
impl Clone for BoundsType
Source§fn clone(&self) -> BoundsType
fn clone(&self) -> BoundsType
Returns a copy 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 BoundsType
impl Debug for BoundsType
Source§impl Default for BoundsType
impl Default for BoundsType
Source§fn default() -> BoundsType
fn default() -> BoundsType
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for BoundsType
impl<'de> Deserialize<'de> for BoundsType
§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 From<BoundsType> for i32
impl From<BoundsType> for i32
Source§fn from(value: BoundsType) -> i32
fn from(value: BoundsType) -> i32
Converts to this type from the input type.
Source§impl Hash for BoundsType
impl Hash for BoundsType
Source§impl Ord for BoundsType
impl Ord for BoundsType
Source§fn cmp(&self, other: &BoundsType) -> Ordering
fn cmp(&self, other: &BoundsType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BoundsType
impl PartialEq for BoundsType
Source§impl PartialOrd for BoundsType
impl PartialOrd for BoundsType
§impl Serialize for BoundsType
impl Serialize for BoundsType
Source§impl TryFrom<i32> for BoundsType
impl TryFrom<i32> for BoundsType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<BoundsType, UnknownEnumValue>
fn try_from(value: i32) -> Result<BoundsType, UnknownEnumValue>
Performs the conversion.
impl Copy for BoundsType
impl Eq for BoundsType
impl StructuralPartialEq for BoundsType
Auto Trait Implementations§
impl Freeze for BoundsType
impl RefUnwindSafe for BoundsType
impl Send for BoundsType
impl Sync for BoundsType
impl Unpin for BoundsType
impl UnwindSafe for BoundsType
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.