Struct aws_sdk_comprehendmedical::types::Attribute
source · #[non_exhaustive]pub struct Attribute {
pub type: Option<EntitySubType>,
pub score: Option<f32>,
pub relationship_score: Option<f32>,
pub relationship_type: Option<RelationshipType>,
pub id: Option<i32>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
pub text: Option<String>,
pub category: Option<EntityType>,
pub traits: Option<Vec<Trait>>,
}
Expand description
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken. It contains information about the attribute such as id, begin and end offset within the input text, and the segment of the input text.
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.type: Option<EntitySubType>
The type of attribute.
score: Option<f32>
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
relationship_score: Option<f32>
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
relationship_type: Option<RelationshipType>
The type of relationship between the entity and attribute. Type for the relationship is OVERLAP
, indicating that the entity occurred at the same time as the Date_Expression
.
id: Option<i32>
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
begin_offset: Option<i32>
The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.
end_offset: Option<i32>
The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.
text: Option<String>
The segment of input text extracted as this attribute.
category: Option<EntityType>
The category of attribute.
traits: Option<Vec<Trait>>
Contextual information for this attribute.
Implementations§
source§impl Attribute
impl Attribute
sourcepub fn type(&self) -> Option<&EntitySubType>
pub fn type(&self) -> Option<&EntitySubType>
The type of attribute.
sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
sourcepub fn relationship_score(&self) -> Option<f32>
pub fn relationship_score(&self) -> Option<f32>
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
sourcepub fn relationship_type(&self) -> Option<&RelationshipType>
pub fn relationship_type(&self) -> Option<&RelationshipType>
The type of relationship between the entity and attribute. Type for the relationship is OVERLAP
, indicating that the entity occurred at the same time as the Date_Expression
.
sourcepub fn id(&self) -> Option<i32>
pub fn id(&self) -> Option<i32>
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn begin_offset(&self) -> Option<i32>
The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.
sourcepub fn end_offset(&self) -> Option<i32>
pub fn end_offset(&self) -> Option<i32>
The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.
sourcepub fn category(&self) -> Option<&EntityType>
pub fn category(&self) -> Option<&EntityType>
The category of attribute.
Trait Implementations§
source§impl PartialEq for Attribute
impl PartialEq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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