pub struct AppModel<P: Provider + Clone + Chat> {
pub input: String,
pub should_quit: bool,
pub chat_state: Arc<Mutex<ChatState<P>>>,
pub display_messages: Vec<Message>,
}Fieldsยง
ยงinput: Stringยงshould_quit: boolยงchat_state: Arc<Mutex<ChatState<P>>>ยงdisplay_messages: Vec<Message>Implementationsยง
Trait Implementationsยง
Auto Trait Implementationsยง
impl<P> Freeze for AppModel<P>
impl<P> !RefUnwindSafe for AppModel<P>
impl<P> Send for AppModel<P>
impl<P> Sync for AppModel<P>
impl<P> Unpin for AppModel<P>
impl<P> !UnwindSafe for AppModel<P>
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