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
nameName of the supplier
supplierImageURL that returns a logo image for the supplier
ratingThe supplier’s overall average rating
View on GitHub
Supplier Structure Reference