Supplier
public struct Supplier : CustomStringConvertible, Equatable
Information about a supplier (of a vehicle)
-
Rating of a supplier
See moreDeclaration
Swift
public struct Rating : Equatable
-
Name of the supplier
Declaration
Swift
public let name: String
-
URL that returns a logo image for the supplier
Declaration
Swift
public let supplierImage: URL
-
The supplier’s overall average rating
Declaration
Swift
public let rating: Rating
-
String representation of the supplier
Declaration
Swift
public var description: String { get }
-
Initializes the supplier
Declaration
Swift
public init(name: String, supplierImage: URL, rating: Rating)
Parameters
name
Name of the supplier
supplierImage
URL that returns a logo image for the supplier
rating
The supplier’s overall average rating