AnyResponse - p2p-org/solana-swift GitHub Wiki
AnyResponse
Class is used to wrap Entity to not be responsible from a concrete type
public struct AnyResponse<Entity: Decodable>: APIClientResponse
Inheritance
Initializers
init(_:)
public init<T: APIClientResponse>(_ response: T) where T.Entity == Entity
Properties
result
public var result: Entity?
error
public var error: ResponseError?