pub struct Reply {
pub page: Option<Page>,
pub message: Option<String>,
pub errors: BTreeMap<String, String>,
pub open: Option<Open>,
}Expand description
What an action export returns, as Reply::to_json. Every part is optional; the default ends the
action without a word.
Fields§
§page: Option<Page>§message: Option<String>Shown briefly, whatever else the reply does.
errors: BTreeMap<String, String>Messages by field key, shown under each field, keeping the user on the page they were on with
what they entered; a key of "", or one that is no field’s, is shown for the whole page.
open: Option<Open>An item to go to, ending the action.
Implementations§
Source§impl Reply
impl Reply
Sourcepub fn document(markdown: impl Into<String>) -> Reply
pub fn document(markdown: impl Into<String>) -> Reply
Shows markdown alone, a report the user can copy or save as a note.
pub fn page(page: Page) -> Reply
Trait Implementations§
Auto Trait Implementations§
impl Forget for Reply
impl Freeze for Reply
impl Move for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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