Function backend::service::plants::find_by_id
source · pub async fn find_by_id(
id: i32,
app_data: &Data<AppDataInner>,
) -> Result<PlantsSummaryDto, ServiceError>
Expand description
Find the plant by id from the database.
§Errors
If the connection to the database could not be established.