Skip to main content

field

Macro field 

Source
macro_rules! field {
    ($t:ty, $f:ident) => { ... };
}
Expand description

Field ident of struct T as files write it: field!(UserProfile, display_name) → "display_name". A field T hasn’t got doesn’t compile.