#[repr(i32)]pub enum BoundsType {
Unspecified = 0,
Rows = 1,
Range = 2,
}Variants§
Unspecified = 0
Unspecified. Producers must set one of the defined bounds type.
Rows = 1
Bounds are physical row offsets in the declared ordering in sorts.
If no ordering is declared, no order is guaranteed.
Range = 2
Bounds are value offsets from the current row’s ordering value.
This bounds type requires exactly one ordering expression if Preceding or Following is used.
Preceding moves toward values earlier in the declared ordering in sorts;
Following moves toward values later in the declared ordering in sorts.
Bounds are inclusive.
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<BoundsType>
pub fn from_str_name(value: &str) -> Option<BoundsType>
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BoundsType
Source§impl Debug for BoundsType
impl Debug for BoundsType
Source§impl Default for BoundsType
impl Default for BoundsType
Source§fn default() -> BoundsType
fn default() -> BoundsType
Source§impl<'de> Deserialize<'de> for BoundsType
impl<'de> Deserialize<'de> for BoundsType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<BoundsType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<BoundsType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
impl Eq for BoundsType
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 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BoundsType
impl PartialEq for BoundsType
Source§impl PartialOrd for BoundsType
impl PartialOrd for BoundsType
Source§impl Serialize for BoundsType
impl Serialize for BoundsType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for BoundsType
Source§impl TryFrom<i32> for BoundsType
impl TryFrom<i32> for BoundsType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<BoundsType, UnknownEnumValue>
fn try_from(value: i32) -> Result<BoundsType, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for BoundsType
impl RefUnwindSafe for BoundsType
impl Send for BoundsType
impl Sync for BoundsType
impl Unpin for BoundsType
impl UnsafeUnpin 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
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.