pub struct AiResponse {
pub content: String,
pub usage: Option<AiUsageStats>,
}Expand description
AI response content and usage statistics.
Fields§
§content: StringResponse content text.
usage: Option<AiUsageStats>Usage statistics.
Trait Implementations§
Source§impl Clone for AiResponse
impl Clone for AiResponse
Source§fn clone(&self) -> AiResponse
fn clone(&self) -> AiResponse
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 moreAuto Trait Implementations§
impl Freeze for AiResponse
impl RefUnwindSafe for AiResponse
impl Send for AiResponse
impl Sync for AiResponse
impl Unpin for AiResponse
impl UnwindSafe for AiResponse
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