pub async fn update_props(
conn: &mut AsyncPgConnection,
props: DrawingVariantEntity,
) -> QueryResult<()>Expand description
Update an existing drawing’s properties.
For complex shapes (FreeLine, BezierPolygon):
- Updates the base props row
- Deletes all existing point rows
- Inserts the new point rows
§Errors
- If the props row does not exist for the given drawing
- If the update violates database constraints
- If deletion or insertion of point rows fails