pub async fn update_notebook(
db: &Arc<dyn NotebookDb>,
id: Uuid,
user_id: Uuid,
patch: NotebookUpdatePatch,
) -> Result<Option<Notebook>, NotebookError>Expand description
Update a notebook’s name and/or cells.
Replicates Python’s truthiness-gated assignment:
nameis only updated whenpatch.nameisSomeand non-empty.cellsis only updated whenpatch.cellsisSome(Value::Array(v))withvnon-empty — an empty cells list does not clear cells.