You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/differential-datalog/rust/template/ovsdb
    
    the code of the file until where you have to start completion: //! Parse OVSDB database update messages and convert them into DDlog table update commands

#![allow(clippy::map_clone)]
#![warn(missing_copy_implementations, missi
    
pub fn record_into_update_str(rec: Record, table: &str) -> Result<String, String> {
    let uuid = match rec {
        Record::NamedStruct(_, ref fields) => fields
            .iter()
            .find(|(f, _)| f == "_uuid")
            .ok_or_else(|| "Record does not have _uuid field".to_string())?
            .1
            .clone(),
        _ => {
            return Err(format!(
                "Cannot convert record to update command: {:?}",
                rec
            ))
        }
    };
    let mut m = Map::new();
    m.insert("op".to_owned(), Value::String("update".to_owned()));
    m.insert("table".to_owned(), Value::String(table.to_owned()));
    m.insert("where".to_owned(), uuid_condition(&uuid)?);
    m.insert("row".to_owned(), record_into_row(rec)?);
    Ok(Value::Object(m).to_string())
}