pub struct GeneralApi<'a> { /* private fields */ }
Expand description
일반상품(유가, 금, 배출권) 관련 API 엔드포인트를 제공합니다.
§예시
// 일반상품 API 접근
let general_api = client.general();
// 유가 일별 시세 조회
let oil = general_api.oil_daily().date("20240105").fetch().await?;
println!("유가: {}", oil);
// 금 최신 정보 조회
let gold = general_api.gold_daily().latest().fetch().await?;
println!("금: {}", gold);
Implementations§
Source§impl<'a> GeneralApi<'a>
impl<'a> GeneralApi<'a>
Sourcepub fn oil_daily(&self) -> OilDailyBuilder<'a>
pub fn oil_daily(&self) -> OilDailyBuilder<'a>
유가증권시장 석유(오일) 일별 시세.
Sourcepub fn gold_daily(&self) -> GoldDailyBuilder<'a>
pub fn gold_daily(&self) -> GoldDailyBuilder<'a>
KRX 금시장 일별 시세.
Sourcepub fn emissions_daily(&self) -> EmissionsDailyBuilder<'a>
pub fn emissions_daily(&self) -> EmissionsDailyBuilder<'a>
배출권시장 일별 시세.
Auto Trait Implementations§
impl<'a> Freeze for GeneralApi<'a>
impl<'a> !RefUnwindSafe for GeneralApi<'a>
impl<'a> Send for GeneralApi<'a>
impl<'a> Sync for GeneralApi<'a>
impl<'a> Unpin for GeneralApi<'a>
impl<'a> !UnwindSafe for GeneralApi<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more