Struct gapi_grpc::google::cloud::bigquery::storage::v1beta2::StorageError[][src]

pub struct StorageError {
    pub code: i32,
    pub entity: String,
    pub error_message: String,
}

Structured custom BigQuery Storage error message. The error can be attached as error details in the returned rpc Status. In particular, the use of error codes allows more structured error handling, and reduces the need to evaluate unstructured error text strings.

Fields

code: i32

BigQuery Storage specific error code.

entity: String

Name of the failed entity.

error_message: String

Message that describes the error.

Implementations

impl StorageError[src]

pub fn code(&self) -> StorageErrorCode[src]

Returns the enum value of code, or the default if the field is set to an invalid enum value.

pub fn set_code(&mut self, value: StorageErrorCode)[src]

Sets code to the provided enum value.

Trait Implementations

impl Clone for StorageError[src]

impl Debug for StorageError[src]

impl Default for StorageError[src]

impl Message for StorageError[src]

impl PartialEq<StorageError> for StorageError[src]

impl StructuralPartialEq for StorageError[src]

Auto Trait Implementations

impl RefUnwindSafe for StorageError

impl Send for StorageError

impl Sync for StorageError

impl Unpin for StorageError

impl UnwindSafe for StorageError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]