Enum aws_sdk_qconnect::types::DataReference
source · #[non_exhaustive]pub enum DataReference {
ContentReference(ContentReference),
GenerativeReference(GenerativeReference),
Unknown,
}Expand description
Reference data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ContentReference(ContentReference)
Reference information about the content.
GenerativeReference(GenerativeReference)
Reference information about the generative content.
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 DataReference
impl DataReference
sourcepub fn as_content_reference(&self) -> Result<&ContentReference, &Self>
pub fn as_content_reference(&self) -> Result<&ContentReference, &Self>
Tries to convert the enum instance into ContentReference, extracting the inner ContentReference.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_content_reference(&self) -> bool
pub fn is_content_reference(&self) -> bool
Returns true if this is a ContentReference.
sourcepub fn as_generative_reference(&self) -> Result<&GenerativeReference, &Self>
pub fn as_generative_reference(&self) -> Result<&GenerativeReference, &Self>
Tries to convert the enum instance into GenerativeReference, extracting the inner GenerativeReference.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_generative_reference(&self) -> bool
pub fn is_generative_reference(&self) -> bool
Returns true if this is a GenerativeReference.
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 DataReference
impl Clone for DataReference
source§fn clone(&self) -> DataReference
fn clone(&self) -> DataReference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DataReference
impl Debug for DataReference
source§impl PartialEq for DataReference
impl PartialEq for DataReference
source§fn eq(&self, other: &DataReference) -> bool
fn eq(&self, other: &DataReference) -> bool
self and other values to be equal, and is used
by ==.