#[repr(i32)]pub enum TransformationResultStatusType {
StateTypeUnspecified = 0,
InvalidTransform = 1,
BigqueryMaxRowSizeExceeded = 2,
MetadataUnretrievable = 3,
Success = 4,
}
Expand description
Enum of possible outcomes of transformations. SUCCESS if transformation and storing of transformation was successful, otherwise, reason for not transforming.
Variants§
StateTypeUnspecified = 0
Unused.
InvalidTransform = 1
This will be set when a finding could not be transformed (i.e. outside user set bucket range).
BigqueryMaxRowSizeExceeded = 2
This will be set when a BigQuery transformation was successful but could not be stored back in BigQuery because the transformed row exceeds BigQuery’s max row size.
MetadataUnretrievable = 3
This will be set when there is a finding in the custom metadata of a file, but at the write time of the transformed file, this key / value pair is unretrievable.
Success = 4
This will be set when the transformation and storing of it is successful.
Implementations§
source§impl TransformationResultStatusType
impl TransformationResultStatusType
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of TransformationResultStatusType
.
sourcepub fn from_i32(value: i32) -> Option<TransformationResultStatusType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<TransformationResultStatusType>
Converts an i32
to a TransformationResultStatusType
, or None
if value
is not a valid variant.
source§impl TransformationResultStatusType
impl TransformationResultStatusType
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 TransformationResultStatusType
impl Clone for TransformationResultStatusType
source§fn clone(&self) -> TransformationResultStatusType
fn clone(&self) -> TransformationResultStatusType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TransformationResultStatusType
impl Default for TransformationResultStatusType
source§fn default() -> TransformationResultStatusType
fn default() -> TransformationResultStatusType
source§impl From<TransformationResultStatusType> for i32
impl From<TransformationResultStatusType> for i32
source§fn from(value: TransformationResultStatusType) -> i32
fn from(value: TransformationResultStatusType) -> i32
source§impl Ord for TransformationResultStatusType
impl Ord for TransformationResultStatusType
source§fn cmp(&self, other: &TransformationResultStatusType) -> Ordering
fn cmp(&self, other: &TransformationResultStatusType) -> 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 TransformationResultStatusType
impl PartialEq for TransformationResultStatusType
source§fn eq(&self, other: &TransformationResultStatusType) -> bool
fn eq(&self, other: &TransformationResultStatusType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransformationResultStatusType
impl PartialOrd for TransformationResultStatusType
source§fn partial_cmp(
&self,
other: &TransformationResultStatusType
) -> Option<Ordering>
fn partial_cmp( &self, other: &TransformationResultStatusType ) -> 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 TransformationResultStatusType
impl TryFrom<i32> for TransformationResultStatusType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<TransformationResultStatusType, DecodeError>
fn try_from(value: i32) -> Result<TransformationResultStatusType, DecodeError>
impl Copy for TransformationResultStatusType
impl Eq for TransformationResultStatusType
impl StructuralPartialEq for TransformationResultStatusType
Auto Trait Implementations§
impl Freeze for TransformationResultStatusType
impl RefUnwindSafe for TransformationResultStatusType
impl Send for TransformationResultStatusType
impl Sync for TransformationResultStatusType
impl Unpin for TransformationResultStatusType
impl UnwindSafe for TransformationResultStatusType
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