pub struct Landing<'a> {
pub placeholder: &'a str,
pub tone: Tone,
pub status: &'a str,
pub body: &'a str,
pub reload: Option<u64>,
}Expand description
One landing page.
Fields§
§placeholder: &'a strThe page’s heading: a placeholder, per the copywriting rule.
tone: ToneThe outcome box’s colour.
status: &'a strWhat happened, in a few words. Escaped here.
body: &'a strThe outcome box’s contents, as markup. Values in it are the
caller’s to escape.
reload: Option<u64>Reload the page this often, in seconds, with no script.
Implementations§
Trait Implementations§
impl<'a> Copy for Landing<'a>
Auto Trait Implementations§
impl<'a> Freeze for Landing<'a>
impl<'a> RefUnwindSafe for Landing<'a>
impl<'a> Send for Landing<'a>
impl<'a> Sync for Landing<'a>
impl<'a> Unpin for Landing<'a>
impl<'a> UnsafeUnpin for Landing<'a>
impl<'a> UnwindSafe for Landing<'a>
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