mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// SeoIdeaOut.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SeoIdeaOut: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Cost is what this call cost, in USD, as an exact decimal string. */
|
|
public var cost: String?
|
|
/** Keywords is the phrases found, each measured. */
|
|
public var keywords: [SeoMetric]?
|
|
/** Total is how many the upstream holds, which is usually more than Limit returned — it is what raising the limit would reach. */
|
|
public var total: Int64?
|
|
|
|
public init(cost: String? = nil, keywords: [SeoMetric]? = nil, total: Int64? = nil) {
|
|
self.cost = cost
|
|
self.keywords = keywords
|
|
self.total = total
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case cost
|
|
case keywords
|
|
case total
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(cost, forKey: .cost)
|
|
try container.encodeIfPresent(keywords, forKey: .keywords)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
}
|
|
}
|
|
|