meta_get
View for displaying a metadata value.
struct Component
pub struct ComponentRenders a styled metadata value.
| Field | Type | Description |
|---|---|---|
value |
String | Metadata value, painted whole in the meta.value style. |
Implements Display.
Component::new
pub fn new(value: impl Into<String>) -> SelfCreate a metadata value view wrapping the given string.
| Parameter | Type | Description |
|---|---|---|
value |
impl Into<String> | the metadata value as text |
| returns | Self | The view. |