pub struct SummarizeContextResponse {
pub summary_id: String,
pub original_context: 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 context response
Fields§
§summary_id: String
Summary ID
original_context: String
Original context
summary: String
Generated summary
method: String
Method used
original_length: usize
Original context 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 SummarizeContextResponse
impl Clone for SummarizeContextResponse
Source§fn clone(&self) -> SummarizeContextResponse
fn clone(&self) -> SummarizeContextResponse
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 SummarizeContextResponse
impl Debug for SummarizeContextResponse
Source§impl<'de> Deserialize<'de> for SummarizeContextResponse
impl<'de> Deserialize<'de> for SummarizeContextResponse
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 SummarizeContextResponse
impl RefUnwindSafe for SummarizeContextResponse
impl Send for SummarizeContextResponse
impl Sync for SummarizeContextResponse
impl Unpin for SummarizeContextResponse
impl UnwindSafe for SummarizeContextResponse
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