SearchNode

public struct SearchNode
extension SearchNode: Encodable
extension SearchNode: Equatable

One end of a car rental search (e.g. pick-up or drop-off) composed of location and date/time

  • The date/time of the pick-up/drop-off

    Declaration

    Swift

    public let date: Date
  • The preferred location of the pick-up/drop-off

    Declaration

    Swift

    public let location: SearchLocation
  • Initializes the search node with a specified date and location

    Declaration

    Swift

    public init(date: Date, location: SearchLocation)

    Parameters

    date

    The date and time of pick-up or drop-off

    location

    The preferred location of pick-up or drop-off

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Test whether two search nodes are equivalent Parameters: - lhs: The first search node to compare - rhs: The second search node to compare

    Declaration

    Swift

    public static func == (lhs: SearchNode, rhs: SearchNode) -> Bool