InfoProvider

public protocol InfoProvider : Decodable, Encodable

The base protocol that defines a struct capable of extracting and comparing pieces of information.

  • A structure that represents the arguments to use when extracting and comparing this provider.

    Declaration

    Swift

    associatedtype Arguments
  • The unique identifier of this provider.

    Declaration

    Swift

    static var identifier: String { get }
  • Executes this provider and returns an instance of it that contains the extracted info.

    Declaration

    Swift

    static func extract(fromApi api: SwiftInfo, args: Arguments?) throws -> Self
  • The descriptive name of this provider, for visual purposes.

    Declaration

    Swift

    var description: String { get }
  • Given another instance of this provider, return a Summary that explains the difference between them.

    Declaration

    Swift

    func summary(comparingWith other: Self?, args: Arguments?) -> Summary
  • error(_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func error(_ message: String) -> SwiftInfoError