meta_get

View for displaying a metadata value.

struct Component

source

pub struct Component

Renders a styled metadata value.

Field Type Description
value String Metadata value, painted whole in the meta.value style.

Implements Display.

Component::new

source

pub fn new(value: impl Into<String>) -> Self

Create a metadata value view wrapping the given string.

Parameter Type Description
value impl Into<String> the metadata value as text
returns Self The view.