#[non_exhaustive]pub enum AssistantAssociationInputData {
KnowledgeBaseId(String),
Unknown,
}Expand description
The data that is input into Amazon Q as a result of the assistant association.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
KnowledgeBaseId(String)
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
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 AssistantAssociationInputData
impl AssistantAssociationInputData
sourcepub fn as_knowledge_base_id(&self) -> Result<&String, &Self>
pub fn as_knowledge_base_id(&self) -> Result<&String, &Self>
Tries to convert the enum instance into KnowledgeBaseId, extracting the inner String.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_knowledge_base_id(&self) -> bool
pub fn is_knowledge_base_id(&self) -> bool
Returns true if this is a KnowledgeBaseId.
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 AssistantAssociationInputData
impl Clone for AssistantAssociationInputData
source§fn clone(&self) -> AssistantAssociationInputData
fn clone(&self) -> AssistantAssociationInputData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AssistantAssociationInputData
impl PartialEq for AssistantAssociationInputData
source§fn eq(&self, other: &AssistantAssociationInputData) -> bool
fn eq(&self, other: &AssistantAssociationInputData) -> bool
self and other values to be equal, and is used
by ==.