Struct aws_sdk_wisdom::types::ContentData
source · #[non_exhaustive]pub struct ContentData {Show 14 fields
pub content_arn: String,
pub content_id: String,
pub knowledge_base_arn: String,
pub knowledge_base_id: String,
pub name: String,
pub revision_id: String,
pub title: String,
pub content_type: String,
pub status: ContentStatus,
pub metadata: HashMap<String, String>,
pub tags: Option<HashMap<String, String>>,
pub link_out_uri: Option<String>,
pub url: String,
pub url_expiry: DateTime,
}
Expand description
Information about the content.
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.content_arn: String
The Amazon Resource Name (ARN) of the content.
content_id: String
The identifier of the content.
knowledge_base_arn: String
The Amazon Resource Name (ARN) of the knowledge base.
knowledge_base_id: String
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it.
name: String
The name of the content.
revision_id: String
The identifier of the content revision.
title: String
The title of the content.
content_type: String
The media type of the content.
status: ContentStatus
The status of the content.
metadata: HashMap<String, String>
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
The tags used to organize, track, or control access for this resource.
link_out_uri: Option<String>
The URI of the content.
url: String
The URL of the content.
url_expiry: DateTime
The expiration time of the URL as an epoch timestamp.
Implementations§
source§impl ContentData
impl ContentData
sourcepub fn content_arn(&self) -> &str
pub fn content_arn(&self) -> &str
The Amazon Resource Name (ARN) of the content.
sourcepub fn content_id(&self) -> &str
pub fn content_id(&self) -> &str
The identifier of the content.
sourcepub fn knowledge_base_arn(&self) -> &str
pub fn knowledge_base_arn(&self) -> &str
The Amazon Resource Name (ARN) of the knowledge base.
sourcepub fn knowledge_base_id(&self) -> &str
pub fn knowledge_base_id(&self) -> &str
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it.
sourcepub fn revision_id(&self) -> &str
pub fn revision_id(&self) -> &str
The identifier of the content revision.
sourcepub fn content_type(&self) -> &str
pub fn content_type(&self) -> &str
The media type of the content.
sourcepub fn status(&self) -> &ContentStatus
pub fn status(&self) -> &ContentStatus
The status of the content.
sourcepub fn metadata(&self) -> &HashMap<String, String>
pub fn metadata(&self) -> &HashMap<String, String>
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
The tags used to organize, track, or control access for this resource.
sourcepub fn link_out_uri(&self) -> Option<&str>
pub fn link_out_uri(&self) -> Option<&str>
The URI of the content.
sourcepub fn url_expiry(&self) -> &DateTime
pub fn url_expiry(&self) -> &DateTime
The expiration time of the URL as an epoch timestamp.
source§impl ContentData
impl ContentData
sourcepub fn builder() -> ContentDataBuilder
pub fn builder() -> ContentDataBuilder
Creates a new builder-style object to manufacture ContentData
.
Trait Implementations§
source§impl Clone for ContentData
impl Clone for ContentData
source§fn clone(&self) -> ContentData
fn clone(&self) -> ContentData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentData
impl Debug for ContentData
source§impl PartialEq for ContentData
impl PartialEq for ContentData
source§fn eq(&self, other: &ContentData) -> bool
fn eq(&self, other: &ContentData) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContentData
Auto Trait Implementations§
impl Freeze for ContentData
impl RefUnwindSafe for ContentData
impl Send for ContentData
impl Sync for ContentData
impl Unpin for ContentData
impl UnwindSafe for ContentData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more