Function backend::model::dto::areas_impl::from_update_area_dto_to_update_hydrology
source · pub fn from_update_area_dto_to_update_hydrology(
dto: UpdateAreaDto,
) -> Result<Vec<UpdateHydrology>, ServiceError>
Expand description
Maps UpdateAreaDto
to UpdateHydrology
s.
Precondition is that the dto
has area_kind == AreaKind::Hydrology
.
§Errors
- Returns an error if the
dto
has a differentarea_kind
.