Skip to main content

upsert_drone_as

Function upsert_drone_as 

Source
pub(crate) fn upsert_drone_as(
    state: &AppState,
    cmd: DroneDefinition,
    saved_by: &str,
) -> Result<DroneDefinition, String>
Expand description

upsertdrone: stamps the times, mints an id for a new drone, and echoes the row back. The version is saved as saved_by, which the registered handler takes from the connection (an agent’s drone is shown as that agent’s).