Struct aws_sdk_qbusiness::types::SourceAttribution
source · #[non_exhaustive]pub struct SourceAttribution {
pub title: Option<String>,
pub snippet: Option<String>,
pub url: Option<String>,
pub citation_number: Option<i32>,
pub updated_at: Option<DateTime>,
pub text_message_segments: Option<Vec<TextSegment>>,
}Expand description
The documents used to generate an Amazon Q web experience response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>The title of the document which is the source for the Amazon Q generated response.
snippet: Option<String>The content extract from the document on which the generated response is based.
url: Option<String>The URL of the document which is the source for the Amazon Q generated response.
citation_number: Option<i32>The number attached to a citation in an Amazon Q generated response.
updated_at: Option<DateTime>The Unix timestamp when the Amazon Q application was last updated.
text_message_segments: Option<Vec<TextSegment>>A text extract from a source document that is used for source attribution.
Implementations§
source§impl SourceAttribution
impl SourceAttribution
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
The title of the document which is the source for the Amazon Q generated response.
sourcepub fn snippet(&self) -> Option<&str>
pub fn snippet(&self) -> Option<&str>
The content extract from the document on which the generated response is based.
sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
The URL of the document which is the source for the Amazon Q generated response.
sourcepub fn citation_number(&self) -> Option<i32>
pub fn citation_number(&self) -> Option<i32>
The number attached to a citation in an Amazon Q generated response.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The Unix timestamp when the Amazon Q application was last updated.
sourcepub fn text_message_segments(&self) -> &[TextSegment]
pub fn text_message_segments(&self) -> &[TextSegment]
A text extract from a source document that is used for source attribution.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .text_message_segments.is_none().
source§impl SourceAttribution
impl SourceAttribution
sourcepub fn builder() -> SourceAttributionBuilder
pub fn builder() -> SourceAttributionBuilder
Creates a new builder-style object to manufacture SourceAttribution.
Trait Implementations§
source§impl Clone for SourceAttribution
impl Clone for SourceAttribution
source§fn clone(&self) -> SourceAttribution
fn clone(&self) -> SourceAttribution
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SourceAttribution
impl Debug for SourceAttribution
source§impl PartialEq for SourceAttribution
impl PartialEq for SourceAttribution
source§fn eq(&self, other: &SourceAttribution) -> bool
fn eq(&self, other: &SourceAttribution) -> bool
self and other values to be equal, and is used
by ==.