Skip to main content

make_field

Function make_field 

Source
pub fn make_field(
    name: &str,
    ty: &str,
    unit: Option<&str>,
    support: FieldSupport,
    representation: FieldRepresentation,
) -> Item
Expand description

Helper: build a simple field declaration.