Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Signature

mattt edited this page Sep 2, 2020 · 6 revisions

Signature

An action signature (e.g. for committers, taggers, etc).

public struct Signature

Inheritance

Codable, CustomStringConvertible, Equatable, Hashable

Initializers

init(name:​email:​time:​timeZone:​)

Creates a signature with the specified name, email, time, and time zone.

public init(name:​ String, email:​ String, time:​ Date = Date(), timeZone:​ TimeZone = TimeZone.current) throws

Parameters

  • name:​ The name of the signer.
  • email:​ The email of the signer.
  • time:​ The time at which the action occurred.
  • timeZone:​ The time's corresponding time zone.

init(from:​)

public init(from decoder:​ Decoder) throws

Properties

name

The name of the signer.

var name:​ String

email

The email of the signer.

var email:​ String

time

The time at which the action occurred.

var time:​ Date

timeZone

The time's corresponding time zone.

var timeZone:​ TimeZone?

description

var description:​ String

Methods

`default`(for:​)

public static func `default`(for repository:​ Repository) throws -> Signature

==(lhs:​rhs:​)

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

hash(into:​)

public func hash(into hasher:inout Hasher)

encode(to:​)

public func encode(to encoder:​ Encoder) throws
Clone this wiki locally