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.
56 lines
1.8 KiB
Swift
56 lines
1.8 KiB
Swift
//
|
|
// SeoRanking.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SeoRanking: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Keyword is the phrase searched. */
|
|
public var keyword: String?
|
|
/** Position is the absolute rank on the results page, counting every element — so it is what a person scrolling actually passes, not the organic-only rank. */
|
|
public var position: Int64?
|
|
/** Title is that result's headline. */
|
|
public var title: String?
|
|
/** Traffic is the estimated monthly visits this placement earns. */
|
|
public var traffic: Double?
|
|
/** URL is the page of the target that placed. */
|
|
public var url: String?
|
|
/** Volume is the phrase's average monthly searches. */
|
|
public var volume: Int64?
|
|
|
|
public init(keyword: String? = nil, position: Int64? = nil, title: String? = nil, traffic: Double? = nil, url: String? = nil, volume: Int64? = nil) {
|
|
self.keyword = keyword
|
|
self.position = position
|
|
self.title = title
|
|
self.traffic = traffic
|
|
self.url = url
|
|
self.volume = volume
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case keyword
|
|
case position
|
|
case title
|
|
case traffic
|
|
case url
|
|
case volume
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(keyword, forKey: .keyword)
|
|
try container.encodeIfPresent(position, forKey: .position)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(traffic, forKey: .traffic)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
try container.encodeIfPresent(volume, forKey: .volume)
|
|
}
|
|
}
|
|
|