Enum google_api_proto::google::cloud::bigquery::storage::v1::append_rows_request::MissingValueInterpretation
source · #[repr(i32)]pub enum MissingValueInterpretation {
Unspecified = 0,
NullValue = 1,
DefaultValue = 2,
}
Expand description
An enum to indicate how to interpret missing values of fields that are present in user schema but missing in rows. A missing value can represent a NULL or a column default value defined in BigQuery table schema.
Variants§
Unspecified = 0
Invalid missing value interpretation. Requests with this value will be rejected.
NullValue = 1
Missing value is interpreted as NULL.
DefaultValue = 2
Missing value is interpreted as column default value if declared in the table schema, NULL otherwise.
Implementations§
source§impl MissingValueInterpretation
impl MissingValueInterpretation
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of MissingValueInterpretation
.
sourcepub fn from_i32(value: i32) -> Option<MissingValueInterpretation>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MissingValueInterpretation>
Converts an i32
to a MissingValueInterpretation
, or None
if value
is not a valid variant.
source§impl MissingValueInterpretation
impl MissingValueInterpretation
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 MissingValueInterpretation
impl Clone for MissingValueInterpretation
source§fn clone(&self) -> MissingValueInterpretation
fn clone(&self) -> MissingValueInterpretation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MissingValueInterpretation
impl Debug for MissingValueInterpretation
source§impl Default for MissingValueInterpretation
impl Default for MissingValueInterpretation
source§fn default() -> MissingValueInterpretation
fn default() -> MissingValueInterpretation
source§impl From<MissingValueInterpretation> for i32
impl From<MissingValueInterpretation> for i32
source§fn from(value: MissingValueInterpretation) -> i32
fn from(value: MissingValueInterpretation) -> i32
source§impl Hash for MissingValueInterpretation
impl Hash for MissingValueInterpretation
source§impl Ord for MissingValueInterpretation
impl Ord for MissingValueInterpretation
source§fn cmp(&self, other: &MissingValueInterpretation) -> Ordering
fn cmp(&self, other: &MissingValueInterpretation) -> 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 MissingValueInterpretation
impl PartialEq for MissingValueInterpretation
source§fn eq(&self, other: &MissingValueInterpretation) -> bool
fn eq(&self, other: &MissingValueInterpretation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MissingValueInterpretation
impl PartialOrd for MissingValueInterpretation
source§fn partial_cmp(&self, other: &MissingValueInterpretation) -> Option<Ordering>
fn partial_cmp(&self, other: &MissingValueInterpretation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MissingValueInterpretation
impl TryFrom<i32> for MissingValueInterpretation
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MissingValueInterpretation, UnknownEnumValue>
fn try_from(value: i32) -> Result<MissingValueInterpretation, UnknownEnumValue>
impl Copy for MissingValueInterpretation
impl Eq for MissingValueInterpretation
impl StructuralPartialEq for MissingValueInterpretation
Auto Trait Implementations§
impl Freeze for MissingValueInterpretation
impl RefUnwindSafe for MissingValueInterpretation
impl Send for MissingValueInterpretation
impl Sync for MissingValueInterpretation
impl Unpin for MissingValueInterpretation
impl UnwindSafe for MissingValueInterpretation
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
§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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request