project_show
Single-project show view using a FieldList to render id and root.
struct Component
pub struct ComponentRenders 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
pub fn new(id: impl Into<String>, root: impl Into<String>) -> SelfCreate 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. |