pub struct KalshiConfig {
pub base: ExchangeConfig,
pub api_url: String,
pub api_key_id: Option<String>,
pub private_key_path: Option<String>,
pub private_key_pem: Option<String>,
pub demo: bool,
}Fields§
§base: ExchangeConfig§api_url: String§api_key_id: Option<String>API key ID (the public key identifier)
private_key_path: Option<String>Path to the RSA private key PEM file
private_key_pem: Option<String>RSA private key PEM content (alternative to path)
demo: boolUse demo environment
Implementations§
Source§impl KalshiConfig
impl KalshiConfig
pub fn new() -> KalshiConfig
pub fn demo() -> KalshiConfig
pub fn with_api_url(self, url: impl Into<String>) -> KalshiConfig
pub fn with_api_key_id(self, key_id: impl Into<String>) -> KalshiConfig
pub fn with_private_key_path(self, path: impl Into<String>) -> KalshiConfig
pub fn with_private_key_pem(self, pem: impl Into<String>) -> KalshiConfig
pub fn with_verbose(self, verbose: bool) -> KalshiConfig
pub fn is_authenticated(&self) -> bool
Trait Implementations§
Source§impl Clone for KalshiConfig
impl Clone for KalshiConfig
Source§fn clone(&self) -> KalshiConfig
fn clone(&self) -> KalshiConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KalshiConfig
impl Debug for KalshiConfig
Source§impl Default for KalshiConfig
impl Default for KalshiConfig
Source§fn default() -> KalshiConfig
fn default() -> KalshiConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KalshiConfig
impl RefUnwindSafe for KalshiConfig
impl Send for KalshiConfig
impl Sync for KalshiConfig
impl Unpin for KalshiConfig
impl UnsafeUnpin for KalshiConfig
impl UnwindSafe for KalshiConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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