pub struct ChatSession {
pub history: Vec<Content>,
/* private fields */
}Fields§
§history: Vec<Content>Implementations§
Source§impl ChatSession
impl ChatSession
pub async fn send_message( &mut self, content: Content, ) -> Result<GeminiResponse, GeminiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatSession
impl RefUnwindSafe for ChatSession
impl Send for ChatSession
impl Sync for ChatSession
impl Unpin for ChatSession
impl UnwindSafe for ChatSession
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