all existing DeviceTypes; empty if none exist
Create a DeviceType.
Create a DeviceType.
deviceType to persist
deviceType that was just created; None if it already existed or something went wrong
Search for a DeviceType based on it's key.
Search for a DeviceType based on it's key.
search criteria
None if nothing is found, otherwise Some
Check the database for device types and if none exist create the default types instead.
Check the database for device types and if none exist create the default types instead.
deviceTypes currently in the database; never empty unless database is empty and the list of default deviceTypes is empty, too
Update a DeviceType.
Update a DeviceType.
deviceType to update
updated deviceType; None if no record exists or something went wrong
author: cvandrei since: 2016-11-09