#[repr(i32)]pub enum SimpleComparisonType {
    Unspecified = 0,
    Eq = 1,
    IsNotDistinctFrom = 2,
    MightEqual = 3,
}Expand description
Most joins will use one of the following behaviors. To avoid the complexity of a function lookup we define the common behaviors here
Variants§
Unspecified = 0
Eq = 1
Returns true only if both values are equal and not null
IsNotDistinctFrom = 2
Returns true if both values are equal and not null Returns true if both values are null Returns false if one value is null and the other value is not null
This can be expressed as a = b OR (isnull(a) AND isnull(b))
MightEqual = 3
Returns true if both values are equal and not null Returns true if either value is null
This can be expressed as a = b OR isnull(a = b)
Implementations§
Source§impl SimpleComparisonType
 
impl SimpleComparisonType
Sourcepub fn is_valid(value: i32) -> bool
 
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of SimpleComparisonType.
Sourcepub fn from_i32(value: i32) -> Option<SimpleComparisonType>
 👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SimpleComparisonType>
Converts an i32 to a SimpleComparisonType, or None if value is not a valid variant.
Source§impl SimpleComparisonType
 
impl SimpleComparisonType
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 SimpleComparisonType
 
impl Clone for SimpleComparisonType
Source§fn clone(&self) -> SimpleComparisonType
 
fn clone(&self) -> SimpleComparisonType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SimpleComparisonType
 
impl Debug for SimpleComparisonType
Source§impl Default for SimpleComparisonType
 
impl Default for SimpleComparisonType
Source§fn default() -> SimpleComparisonType
 
fn default() -> SimpleComparisonType
§impl<'de> Deserialize<'de> for SimpleComparisonType
 
impl<'de> Deserialize<'de> for SimpleComparisonType
§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>,
Source§impl From<SimpleComparisonType> for i32
 
impl From<SimpleComparisonType> for i32
Source§fn from(value: SimpleComparisonType) -> i32
 
fn from(value: SimpleComparisonType) -> i32
Source§impl Hash for SimpleComparisonType
 
impl Hash for SimpleComparisonType
Source§impl Ord for SimpleComparisonType
 
impl Ord for SimpleComparisonType
Source§fn cmp(&self, other: &SimpleComparisonType) -> Ordering
 
fn cmp(&self, other: &SimpleComparisonType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Source§impl PartialEq for SimpleComparisonType
 
impl PartialEq for SimpleComparisonType
Source§impl PartialOrd for SimpleComparisonType
 
impl PartialOrd for SimpleComparisonType
§impl Serialize for SimpleComparisonType
 
impl Serialize for SimpleComparisonType
Source§impl TryFrom<i32> for SimpleComparisonType
 
impl TryFrom<i32> for SimpleComparisonType
Source§type Error = UnknownEnumValue
 
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<SimpleComparisonType, UnknownEnumValue>
 
fn try_from(value: i32) -> Result<SimpleComparisonType, UnknownEnumValue>
impl Copy for SimpleComparisonType
impl Eq for SimpleComparisonType
impl StructuralPartialEq for SimpleComparisonType
Auto Trait Implementations§
impl Freeze for SimpleComparisonType
impl RefUnwindSafe for SimpleComparisonType
impl Send for SimpleComparisonType
impl Sync for SimpleComparisonType
impl Unpin for SimpleComparisonType
impl UnwindSafe for SimpleComparisonType
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
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.