summaryrefslogtreecommitdiffstats
path: root/src/http/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/render.rs')
-rw-r--r--src/http/render.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/http/render.rs b/src/http/render.rs
index 4482380..d513c2a 100644
--- a/src/http/render.rs
+++ b/src/http/render.rs
@@ -38,7 +38,9 @@ pub use page::Page;
pub(crate) use page::Page;
impl Page {
- pub fn new(title: &str, csrf: String) -> Self {
+ /// Built by the route handlers, which are in this module; nothing outside
+ /// `http` constructs a page header.
+ pub(crate) fn new(title: &str, csrf: String) -> Self {
Self {
title: title.into(),
flash: String::new(),
@@ -181,7 +183,8 @@ pub use panel::Panel;
pub(crate) use panel::Panel;
impl Panel {
- pub fn new(title: &str, body: String) -> Self {
+ /// Built by the route handlers, which are in this module.
+ pub(crate) fn new(title: &str, body: String) -> Self {
Self {
title: title.into(),
empty: body.trim().is_empty(),
@@ -329,7 +332,10 @@ pub(crate) struct BuildLite {
}
#[derive(Debug, Clone)]
-pub struct BuildRow {
+/// A row of the builds table as the templates render it. Filled and read
+/// entirely inside `http`; the `BuildRow` other modules name is `db::builds::BuildRow`,
+/// a different type that happens to share the name.
+pub(crate) struct BuildRow {
pub id: String,
pub id_short: String,
pub pkgbase: String,