pub struct BackendResponse {
pub text: String,
pub input_tokens: u64,
pub output_tokens: u64,
}Expand description
Response from an AI backend call.
Fields§
§text: StringThe AI’s response text (inner result extracted from wrapper).
input_tokens: u64Input tokens consumed.
output_tokens: u64Output tokens produced.
Auto Trait Implementations§
impl Freeze for BackendResponse
impl RefUnwindSafe for BackendResponse
impl Send for BackendResponse
impl Sync for BackendResponse
impl Unpin for BackendResponse
impl UnsafeUnpin for BackendResponse
impl UnwindSafe for BackendResponse
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