Struct gmo_coin_rs2::response::RestResponse
source · [−]pub struct RestResponse<T> {
pub http_status_code: u16,
pub body: T,
}
Expand description
Public API, Private APIの結果として返す構造体。
Fields
http_status_code: u16
HTTPステータスコード。
body: T
GMOコインからのレスポンスのボディ部分。
Implementations
sourceimpl RestResponse<ActiveOrders>
impl RestResponse<ActiveOrders>
sourcepub fn active_orders(&self) -> &Vec<Order>
pub fn active_orders(&self) -> &Vec<Order>
有効注文一覧が格納された配列を取得する。
sourcepub fn current_page(&self) -> i64
pub fn current_page(&self) -> i64
取得対象ページ。
sourceimpl RestResponse<CloseOrder>
impl RestResponse<CloseOrder>
sourceimpl RestResponse<Executions>
impl RestResponse<Executions>
sourcepub fn executions(&self) -> &Vec<Execution>
pub fn executions(&self) -> &Vec<Execution>
約定情報取得が格納された配列を取得する。
sourceimpl RestResponse<LatestExecutions>
impl RestResponse<LatestExecutions>
sourcepub fn latest_executions(&self) -> &Vec<Execution>
pub fn latest_executions(&self) -> &Vec<Execution>
最新の約定一覧が格納された配列を取得する。
sourcepub fn current_page(&self) -> i64
pub fn current_page(&self) -> i64
取得対象ページ。
sourceimpl RestResponse<Margin>
impl RestResponse<Margin>
sourcepub fn actual_profit_loss(&self) -> i64
pub fn actual_profit_loss(&self) -> i64
時価評価総額を取得する。
sourcepub fn availabel_amount(&self) -> i64
pub fn availabel_amount(&self) -> i64
取引余力を取得する。
sourcepub fn profit_loss(&self) -> i64
pub fn profit_loss(&self) -> i64
評価損益を取得する。
sourceimpl RestResponse<OpenPositions>
impl RestResponse<OpenPositions>
sourcepub fn open_positions(&self) -> &Vec<Position>
pub fn open_positions(&self) -> &Vec<Position>
建玉一覧が格納された配列を取得する。
sourcepub fn current_page(&self) -> i64
pub fn current_page(&self) -> i64
取得対象ページ。
sourceimpl RestResponse<PositionSummary>
impl RestResponse<PositionSummary>
sourcepub fn position_summaries(&self) -> &Vec<Summary>
pub fn position_summaries(&self) -> &Vec<Summary>
建玉サマリーが格納された配列を取得する。
sourceimpl RestResponse<Orderbooks>
impl RestResponse<Orderbooks>
sourceimpl RestResponse<Status>
impl RestResponse<Status>
sourceimpl RestResponse<Ticker>
impl RestResponse<Ticker>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for RestResponse<T> where
T: RefUnwindSafe,
impl<T> Send for RestResponse<T> where
T: Send,
impl<T> Sync for RestResponse<T> where
T: Sync,
impl<T> Unpin for RestResponse<T> where
T: Unpin,
impl<T> UnwindSafe for RestResponse<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more