project_show

Single-project show view using a FieldList to render id and root.

struct Component

source

pub struct Component

Renders the current project’s id and root path as an aligned key-value list.

Field Type Description
id String Full project ID; its first 8 characters are shown.
root String Project root path, shown as given.

Implements Display.

Component::new

source

pub fn new(id: impl Into<String>, root: impl Into<String>) -> Self

Create a show view for a project with the given id and root path.

Parameter Type Description
id impl Into<String> the full project ID
root impl Into<String> the project’s root path
returns Self The view.