Skip to content

InfoProvider

rockbruno edited this page May 9, 2020 · 1 revision

InfoProvider

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

public protocol InfoProvider: Codable

Inheritance

Codable

Requirements

Arguments

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

associatedtype Arguments

identifier

The unique identifier of this provider.

var identifier: String

extract(fromApi:args:)

Executes this provider and returns an instance of it that contains the extracted info.

static func extract(fromApi api: SwiftInfo, args: Arguments?) throws -> Self

description

The descriptive name of this provider, for visual purposes.

var description: String

summary(comparingWith:args:)

Given another instance of this provider, return a Summary that explains the difference between them.

func summary(comparingWith other: Self?, args: Arguments?) -> Summary
Clone this wiki locally