Files
sdk/Sources/Hanzo/Models/StatusBreakdown.swift

41 lines
1.1 KiB
Swift

//
// StatusBreakdown.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct StatusBreakdown: Sendable, Codable, ParameterConvertible, Hashable {
/** invocations that ran and failed */
public var error: Int64?
/** invocations whose code ran and wrote nothing to stderr */
public var success: Int64?
/** invocations that hit their configured deadline */
public var timeout: Int64?
public init(error: Int64? = nil, success: Int64? = nil, timeout: Int64? = nil) {
self.error = error
self.success = success
self.timeout = timeout
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case error
case success
case timeout
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(error, forKey: .error)
try container.encodeIfPresent(success, forKey: .success)
try container.encodeIfPresent(timeout, forKey: .timeout)
}
}