pub struct Session {
pub thread_id: String,
pub assistant_id: String,
}
Fields§
§thread_id: String
§assistant_id: String
Implementations§
source§impl Session
impl Session
pub async fn new_from_client( client: &Client<OpenAIConfig> ) -> Result<Self, ChatError>
pub async fn load_from_repo(repo: &Repository) -> Result<Option<Self>>
pub async fn save_to_repo(&self, repo: &Repository) -> Result<()>
Trait Implementations§
source§impl PartialEq for Session
impl PartialEq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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