Turns out I had already implemented this. Bad ass!
Just did a minor cleanup and prevented linting error within the object macro
object and object_partial use in .set method of create and update statements. object ensures exhaustiveness and also allows setting with field, or param values which would not be a primitive value like u8 etc.
object_parital is used mainly in update when you need to update only some fields.
Purpose
Turns out I had already implemented this. Bad ass! Just did a minor cleanup and prevented linting error within the
object
macroobject
andobject_partial
use in.set
method of create and update statements.object
ensures exhaustiveness and also allows setting with field, or param values which would not be a primitive value like u8 etc.object_parital
is used mainly in update when you need to update only some fields.