Custom

public struct Custom
extension Custom: CustomStringConvertible
extension Custom: Equatable
extension Custom: Comparable

Custom directive

  • Date of the directive

    Declaration

    Swift

    public let date: Date
  • Name of the custom directive

    Declaration

    Swift

    public let name: String
  • Values of the custom directive

    Declaration

    Swift

    public let values: [String]
  • MetaData of the custom directive

    Declaration

    Swift

    public let metaData: [String : String]
  • Create a Custom directive

    Declaration

    Swift

    public init(date: Date, name: String, values: [String], metaData: [String : String] = [:])

    Parameters

    date

    date

    name

    name

    values

    values

  • Returns the custom directive string for the ledger.

    Declaration

    Swift

    public var description: String { get }
  • Retuns if the two Custom directives are equal

    Declaration

    Swift

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

    Parameters

    lhs

    custom 1

    rhs

    custom 2

    Return Value

    true if the custom directives are equal, false otherwise

  • Declaration

    Swift

    public static func < (lhs: Custom, rhs: Custom) -> Bool