HAServicesDomain

public struct HAServicesDomain : RawRepresentable, Hashable, ExpressibleByStringLiteral

The domain of a service

For example, light in light.turn_on is the domain.

  • The domain as a string

    Declaration

    Swift

    public var rawValue: String
  • Construct a service domain from a raw value

    Declaration

    Swift

    public init(rawValue: String)

    Parameters

    rawValue

    The raw value

  • Construct a service domain from a literal

    This is mainly useful when stringly-calling a parameter that takes this type. You should use the HAServicesDomain.init(rawValue:) initializer instead.

    Declaration

    Swift

    public init(stringLiteral value: StringLiteralType)

    Parameters

    value

    The literal value