mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
34 lines
793 B
Swift
34 lines
793 B
Swift
//
|
|
// SessionsQuery.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
#if canImport(AnyCodable)
|
|
import AnyCodable
|
|
#endif
|
|
|
|
public struct SessionsQuery: Codable, JSONEncodable, Hashable {
|
|
|
|
public static let limitRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: nil, exclusiveMaximum: false, multipleOf: nil)
|
|
public var limit: Int?
|
|
|
|
public init(limit: Int? = nil) {
|
|
self.limit = limit
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case limit
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(limit, forKey: .limit)
|
|
}
|
|
}
|
|
|