Function backend::service::layer::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.