BehaviorID

enum BehaviorID
extension BehaviorID : Equatable, Sendable

The ID of a behavior, which can be a command, event or trait.

  • The id of a command.

    Declaration

    Swift

    case command(id: String)
  • The id of an event.

    Declaration

    Swift

    case event(id: String)
  • The id of a trait.

    Declaration

    Swift

    case trait(id: String)
  • Returns a Boolean value indicating whether two values are equal.

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

    Declaration

    Swift

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

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.