#[non_exhaustive]pub struct AnalyzeEntitiesResponse {
pub entities: Vec<Entity>,
pub language_code: String,
pub language_supported: bool,
/* private fields */
}Expand description
The entity analysis response message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entities: Vec<Entity>The recognized entities in the input document.
language_code: StringThe language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][] field for more details.
language_supported: boolWhether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis.
Implementations§
Source§impl AnalyzeEntitiesResponse
impl AnalyzeEntitiesResponse
pub fn new() -> Self
Sourcepub fn set_entities<T, V>(self, v: T) -> Self
pub fn set_entities<T, V>(self, v: T) -> Self
Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
§Example
ⓘ
let x = AnalyzeEntitiesResponse::new().set_language_code("example");Sourcepub fn set_language_supported<T: Into<bool>>(self, v: T) -> Self
pub fn set_language_supported<T: Into<bool>>(self, v: T) -> Self
Sets the value of language_supported.
§Example
ⓘ
let x = AnalyzeEntitiesResponse::new().set_language_supported(true);Trait Implementations§
Source§impl Clone for AnalyzeEntitiesResponse
impl Clone for AnalyzeEntitiesResponse
Source§fn clone(&self) -> AnalyzeEntitiesResponse
fn clone(&self) -> AnalyzeEntitiesResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalyzeEntitiesResponse
impl Debug for AnalyzeEntitiesResponse
Source§impl Default for AnalyzeEntitiesResponse
impl Default for AnalyzeEntitiesResponse
Source§fn default() -> AnalyzeEntitiesResponse
fn default() -> AnalyzeEntitiesResponse
Returns the “default value” for a type. Read more
Source§impl Message for AnalyzeEntitiesResponse
impl Message for AnalyzeEntitiesResponse
Source§impl PartialEq for AnalyzeEntitiesResponse
impl PartialEq for AnalyzeEntitiesResponse
impl StructuralPartialEq for AnalyzeEntitiesResponse
Auto Trait Implementations§
impl Freeze for AnalyzeEntitiesResponse
impl RefUnwindSafe for AnalyzeEntitiesResponse
impl Send for AnalyzeEntitiesResponse
impl Sync for AnalyzeEntitiesResponse
impl Unpin for AnalyzeEntitiesResponse
impl UnwindSafe for AnalyzeEntitiesResponse
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
Mutably borrows from an owned value. Read more