pub struct SummaryResponse {
pub claim: String,
pub token_usage: Option<TokenUsage>,
pub model_name_echoed: String,
}Expand description
Result of a successful SummaryBackend::summarize call.
Fields§
§claim: StringThe produced summary text. Must be non-empty; the decay path re-validates this and refuses if the backend echoes an empty claim.
token_usage: Option<TokenUsage>Token-usage echo from the provider, if any.
model_name_echoed: StringThe model name the backend says actually produced the response.
The decay path verifies this byte-equals
SummaryRequest::model_name and refuses on mismatch (so a
silently-routed provider cannot launder an attestation pin).
Trait Implementations§
Source§impl Clone for SummaryResponse
impl Clone for SummaryResponse
Source§fn clone(&self) -> SummaryResponse
fn clone(&self) -> SummaryResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SummaryResponse
impl Debug for SummaryResponse
Source§impl<'de> Deserialize<'de> for SummaryResponse
impl<'de> Deserialize<'de> for SummaryResponse
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 SummaryResponse
impl RefUnwindSafe for SummaryResponse
impl Send for SummaryResponse
impl Sync for SummaryResponse
impl Unpin for SummaryResponse
impl UnsafeUnpin for SummaryResponse
impl UnwindSafe for SummaryResponse
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