Skip to main content

is_primary_key_attribute

Function is_primary_key_attribute 

pub fn is_primary_key_attribute(attribute: &Attribute) -> bool
Expand description

Whether attribute marks its field as the primary key. Exact match on PRIMARY_KEY_ATTRIBUTE: @identity, @idx and @id_foo are other (unknown) attributes, not a primary key.