Skip to main content

edit_fields

Function edit_fields 

Source
pub fn edit_fields(
    record: &ResourceDesc,
    doc: &mut Doc,
    obj: &ObjId,
    path: &[Segment],
    op: &EditOp,
    cx: &mut ActionCx,
) -> Result<(), ModelError>
Expand description

Fields::edit_fields of a record: a field segment routes the edit to its field; a set of the record replaces it whole; the record’s own check runs after.