#[repr(i32)]pub enum OutputMode {
Unspecified = 0,
NoOutput = 1,
ModifiedRecords = 2,
}
Variants§
Unspecified = 0
NoOutput = 1
return no records at all
ModifiedRecords = 2
this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator. The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams (e.g., retunring the typical “count of modified records”). For scenarios in which the BEFORE image is required, the user must implement a spool (via references to subplans in the body of the Rel input) and return those with anounter PlanRel.relations.
Implementations§
Source§impl OutputMode
impl OutputMode
Source§impl OutputMode
impl OutputMode
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 OutputMode
impl Clone for OutputMode
Source§fn clone(&self) -> OutputMode
fn clone(&self) -> OutputMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OutputMode
impl Debug for OutputMode
Source§impl Default for OutputMode
impl Default for OutputMode
Source§fn default() -> OutputMode
fn default() -> OutputMode
§impl<'de> Deserialize<'de> for OutputMode
impl<'de> Deserialize<'de> for OutputMode
§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<OutputMode> for i32
impl From<OutputMode> for i32
Source§fn from(value: OutputMode) -> i32
fn from(value: OutputMode) -> i32
Source§impl Hash for OutputMode
impl Hash for OutputMode
Source§impl Ord for OutputMode
impl Ord for OutputMode
Source§fn cmp(&self, other: &OutputMode) -> Ordering
fn cmp(&self, other: &OutputMode) -> 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 OutputMode
impl PartialEq for OutputMode
Source§impl PartialOrd for OutputMode
impl PartialOrd for OutputMode
§impl Serialize for OutputMode
impl Serialize for OutputMode
Source§impl TryFrom<i32> for OutputMode
impl TryFrom<i32> for OutputMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<OutputMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<OutputMode, UnknownEnumValue>
impl Copy for OutputMode
impl Eq for OutputMode
impl StructuralPartialEq for OutputMode
Auto Trait Implementations§
impl Freeze for OutputMode
impl RefUnwindSafe for OutputMode
impl Send for OutputMode
impl Sync for OutputMode
impl Unpin for OutputMode
impl UnwindSafe for OutputMode
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.