pub struct ApiContext {
pub chain_id: SupportedChainId,
pub env: Env,
pub base_urls: Option<ApiBaseUrls>,
pub api_key: Option<String>,
}Expand description
The CoW Protocol API context.
Defines the chain, environment, and optional overrides for connecting to the
CoW Protocol API.
Fields§
§chain_id: SupportedChainIdThe target chain ID.
env: EnvThe API environment (prod or staging).
base_urls: Option<ApiBaseUrls>Optional per-chain base URL overrides.
api_key: Option<String>Optional API key for the partner API.
Trait Implementations§
Source§impl Clone for ApiContext
impl Clone for ApiContext
Source§fn clone(&self) -> ApiContext
fn clone(&self) -> ApiContext
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 ApiContext
impl Debug for ApiContext
Auto Trait Implementations§
impl Freeze for ApiContext
impl RefUnwindSafe for ApiContext
impl Send for ApiContext
impl Sync for ApiContext
impl Unpin for ApiContext
impl UnsafeUnpin for ApiContext
impl UnwindSafe for ApiContext
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