Struct move_binary_format::normalized::Field
source · pub struct Field {
pub name: Identifier,
pub type_: Type,
}
Expand description
Normalized version of a FieldDefinition
. The name
is included even though it is
metadata that it is ignored by the VM. The reason: names are important to clients. We would
want a change from Account { bal: u64, seq: u64 }
to Account { seq: u64, bal: u64 }
to be
marked as incompatible. Not safe to compare without an enclosing Struct
.
Fields§
§name: Identifier
§type_: Type
Implementations§
source§impl Field
impl Field
sourcepub fn new(m: &CompiledModule, f: &FieldDefinition) -> Self
pub fn new(m: &CompiledModule, f: &FieldDefinition) -> Self
Create a Field
for FieldDefinition
f
in module m
.