backend::service::layer

Function create

source
pub async fn create(
    map_id: i32,
    new_layer: LayerDto,
    pool: &SharedPool,
) -> Result<LayerDto, ServiceError>
Expand description

Create a new layer in the database.

ยงErrors

If the connection to the database could not be established.