NimbusSegment

struct NimbusSegment
extension NimbusSegment : Decodable, Encodable, Equatable, Hashable

Segment objects are essentially key-value pairs that convey specific units of data. The parent Data object is a collection of such values from a given data provider. The specific segment names and value options must be published by the exchange a priori to its bidders. OpenRTB Section 3.2.22

  • id

    ID of the data segment specific to the data provider

    Declaration

    Swift

    var id: String?
  • Name of the data segment specific to the data provider

    Declaration

    Swift

    var name: String?
  • String representation of the data segment value

    Declaration

    Swift

    var value: String?
  • Initializes a NimbusUserSegment

    • id: ID of the data segment specific to the data provider
    • name: Name of the data segment specific to the data provider
    • value: String representation of the data segment value

    Declaration

    Swift

    init(id: String? = nil, name: String? = nil, value: String? = nil)
  • Returns a Boolean value indicating whether two values are not equal.

    Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

    This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

    Declaration

    Swift

    static func != (lhs: Self, rhs: Self) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    init(from decoder: any Decoder) throws