pub struct ExtractEntitiesResponse {
pub entities: Vec<ExtractedEntityDto>,
pub labels_used: Vec<String>,
pub model: String,
pub processing_time_ms: i64,
}Expand description
Response from entity extraction
Fields§
§entities: Vec<ExtractedEntityDto>Extracted entities with their sort labels and text spans
labels_used: Vec<String>The labels that were used for extraction (sort names)
model: StringModel used for extraction (e.g., “gliner2-large-v2.5”)
processing_time_ms: i64Processing time in milliseconds
Implementations§
Source§impl ExtractEntitiesResponse
impl ExtractEntitiesResponse
pub fn builder() -> ExtractEntitiesResponse
Trait Implementations§
Source§impl Clone for ExtractEntitiesResponse
impl Clone for ExtractEntitiesResponse
Source§fn clone(&self) -> ExtractEntitiesResponse
fn clone(&self) -> ExtractEntitiesResponse
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 ExtractEntitiesResponse
impl Debug for ExtractEntitiesResponse
Source§impl<'de> Deserialize<'de> for ExtractEntitiesResponse
impl<'de> Deserialize<'de> for ExtractEntitiesResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExtractEntitiesResponse> for ExtractEntitiesResponse
impl From<ExtractEntitiesResponse> for ExtractEntitiesResponse
Source§fn from(value: ExtractEntitiesResponse) -> Self
fn from(value: ExtractEntitiesResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExtractEntitiesResponse
impl PartialEq for ExtractEntitiesResponse
Source§impl Serialize for ExtractEntitiesResponse
impl Serialize for ExtractEntitiesResponse
Source§impl TryFrom<ExtractEntitiesResponse> for ExtractEntitiesResponse
impl TryFrom<ExtractEntitiesResponse> for ExtractEntitiesResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ExtractEntitiesResponse) -> Result<Self, ConversionError>
fn try_from(value: ExtractEntitiesResponse) -> Result<Self, ConversionError>
Performs the conversion.
impl StructuralPartialEq for ExtractEntitiesResponse
Auto Trait Implementations§
impl Freeze for ExtractEntitiesResponse
impl RefUnwindSafe for ExtractEntitiesResponse
impl Send for ExtractEntitiesResponse
impl Sync for ExtractEntitiesResponse
impl Unpin for ExtractEntitiesResponse
impl UnsafeUnpin for ExtractEntitiesResponse
impl UnwindSafe for ExtractEntitiesResponse
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