Skip to main content

field

Function field 

Source
pub fn field<T: MessageField>(
    v: &Value,
    kind: &str,
    key: &'static str,
) -> Result<T, MessageError>
Expand description

Field key of the map v, as T: what the derive reads each field with. An absent key reads as null, so an Option field may be left out.