pub struct Answer {
pub text: String,
pub refused: bool,
pub clear_session: bool,
pub yolo: Option<bool>,
}Expand description
What a served command answers with: the row, whether it is a refusal, and whether the page
should forget the session it is holding (only /new does).
Fields§
§text: String§refused: bool§clear_session: bool§yolo: Option<bool>Some when the answer changed /yolo, so the page can paint the state the server is in
rather than remembering what was typed (#285). None is “nothing to say about it”.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Answer
impl Freeze for Answer
impl Move for Answer
impl RefUnwindSafe for Answer
impl Send for Answerwhere
RawVecInner: Send,
impl Sync for Answerwhere
RawVecInner: Sync,
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answerwhere
RawVecInner: UnwindSafe,
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