pub struct Client { /* private fields */ }
Expand description
KRX API 클라이언트
Implementations§
Source§impl Client
impl Client
Sourcepub fn with_logging(
auth_key: impl Into<String>,
logging_config: LoggingConfig,
) -> Result<Self>
pub fn with_logging( auth_key: impl Into<String>, logging_config: LoggingConfig, ) -> Result<Self>
로깅 설정과 함께 클라이언트 생성
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
클라이언트 빌더 반환
Sourcepub fn derivative(&self) -> DerivativeApi<'_>
pub fn derivative(&self) -> DerivativeApi<'_>
파생상품 API 접근
Sourcepub fn general(&self) -> GeneralApi<'_>
pub fn general(&self) -> GeneralApi<'_>
일반상품 API 접근
Sourcepub fn get_base_url(&self) -> &str
pub fn get_base_url(&self) -> &str
현재 클라이언트의 기본 URL을 반환합니다. (테스트용)
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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