RestrictionData
public struct RestrictionData : Equatable
Data for a single dangerous goods restriction.
Creates a single instance of the dangerous goods restriction data for a specific restriction type.
Declaration
Swift
public init(
restriction: RestrictionType,
violates: Bool
)
Parameters
restriction
|
Restriction to comply with such as hazardous load or ADR tunnel category. |
violates
|
Flag to indicate if the current vehicle profile violates the restriction. |
RestrictionType
to comply with.
Declaration
Swift
public let restriction: RestrictionType
Flag to indicate if the current vehicle profile violates the dangerous goods restriction.
Declaration
Swift
public let violates: Bool