jquants-api-client 0.1.0

A Rust client for the J-Quants API, providing seamless access to financial data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! API builder trait.

use std::fmt;

use serde::de::DeserializeOwned;

/// Trait for API builders.
pub trait JQuantsBuilder<R: DeserializeOwned + fmt::Debug> {
    /// Send the request.
    fn send(self) -> impl std::future::Future<Output = Result<R, crate::JQuantsError>>;

    /// Send the request without consuming ownership.
    /// Use only when reusing the builder.
    fn send_ref(&self) -> impl std::future::Future<Output = Result<R, crate::JQuantsError>>;
}