pub struct MovieAnswers {
pub library: MovieLibrary,
pub labels: MovieChatLabels,
pub on_open: Rc<dyn Fn(&Moment)>,
pub writer: Option<MovieWriter>,
}Expand description
What answering a question about the films takes. See MovieAnswers::answer.
Fields§
§library: MovieLibraryThe films.
labels: MovieChatLabelsThe words of the answers.
on_open: Rc<dyn Fn(&Moment)>What opening a moment means in the app.
writer: Option<MovieWriter>Who writes the answer in its own words, if anyone.
Implementations§
Source§impl MovieAnswers
impl MovieAnswers
Sourcepub fn answer(&self, question: &str, waker: &UiWaker) -> ChatMessage
pub fn answer(&self, question: &str, waker: &UiWaker) -> ChatMessage
What to say to a question: the moments that answer it, or that nothing does. For an app whose chat does more than talk about films.
Trait Implementations§
Source§impl Clone for MovieAnswers
impl Clone for MovieAnswers
Source§fn clone(&self) -> MovieAnswers
fn clone(&self) -> MovieAnswers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for MovieAnswers
impl !Send for MovieAnswers
impl !Sync for MovieAnswers
impl !UnwindSafe for MovieAnswers
impl Freeze for MovieAnswers
impl Unpin for MovieAnswers
impl UnsafeUnpin for MovieAnswers
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