pub struct SummarizeTextResponse {
pub summary_id: String,
pub original_text: String,
pub summary: String,
pub method: String,
pub original_length: usize,
pub summary_length: usize,
pub compression_ratio: f32,
pub language: String,
pub status: String,
pub message: String,
pub metadata: HashMap<String, String>,
}
Expand description
Summarize text response
Fields§
§summary_id: String
Summary ID
original_text: String
Original text
summary: String
Generated summary
method: String
Method used
original_length: usize
Original text length
summary_length: usize
Summary length
compression_ratio: f32
Compression ratio
language: String
Language
status: String
Status
message: String
Message
metadata: HashMap<String, String>
Metadata
Trait Implementations§
Source§impl Clone for SummarizeTextResponse
impl Clone for SummarizeTextResponse
Source§fn clone(&self) -> SummarizeTextResponse
fn clone(&self) -> SummarizeTextResponse
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 SummarizeTextResponse
impl Debug for SummarizeTextResponse
Source§impl<'de> Deserialize<'de> for SummarizeTextResponse
impl<'de> Deserialize<'de> for SummarizeTextResponse
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
Auto Trait Implementations§
impl Freeze for SummarizeTextResponse
impl RefUnwindSafe for SummarizeTextResponse
impl Send for SummarizeTextResponse
impl Sync for SummarizeTextResponse
impl Unpin for SummarizeTextResponse
impl UnwindSafe for SummarizeTextResponse
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