DriveRestRegulation
public struct DriveRestRegulation : Hashable
Drive-rest regulation defining mandatory rest requirements for commercial vehicle drivers.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Maximum continuous or accumulated daily driving time in minutes before a rest is required.
Declaration
Swift
public var maxDailyDriveTimeInMinutes: TimeInterval? -
Minimum daily rest duration in minutes that must be taken.
Declaration
Swift
public var dailyRestMinInMinutes: TimeInterval? -
Maximum driving time in minutes allowed before a mid-drive rest must be taken.
Declaration
Swift
public var midDriveRestInMinutes: TimeInterval? -
Minimum duration in minutes of the required mid-drive rest.
Declaration
Swift
public var midDriveRestMinInMinutes: TimeInterval? -
init(maxDailyDriveTimeInMinutes:dailyRestMinInMinutes: midDriveRestInMinutes: midDriveRestMinInMinutes: ) Creates a new instance with default values.
Declaration
Swift
public init(maxDailyDriveTimeInMinutes: TimeInterval? = nil, dailyRestMinInMinutes: TimeInterval? = nil, midDriveRestInMinutes: TimeInterval? = nil, midDriveRestMinInMinutes: TimeInterval? = nil)