#[non_exhaustive]
pub enum EojDataSourceConfigInput {
S3Data(S3DataInput),
Unknown,
}
Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
S3Data(S3DataInput)
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl EojDataSourceConfigInput
impl EojDataSourceConfigInput
sourcepub fn as_s3_data(&self) -> Result<&S3DataInput, &Self>
pub fn as_s3_data(&self) -> Result<&S3DataInput, &Self>
Tries to convert the enum instance into S3Data
, extracting the inner S3DataInput
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_s3_data(&self) -> bool
pub fn is_s3_data(&self) -> bool
Returns true if this is a S3Data
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for EojDataSourceConfigInput
impl Clone for EojDataSourceConfigInput
source§fn clone(&self) -> EojDataSourceConfigInput
fn clone(&self) -> EojDataSourceConfigInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EojDataSourceConfigInput
impl Debug for EojDataSourceConfigInput
source§impl PartialEq<EojDataSourceConfigInput> for EojDataSourceConfigInput
impl PartialEq<EojDataSourceConfigInput> for EojDataSourceConfigInput
source§fn eq(&self, other: &EojDataSourceConfigInput) -> bool
fn eq(&self, other: &EojDataSourceConfigInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.