pub struct Environment {
pub name: &'static str,
pub chain_id: u64,
pub rpc: &'static str,
pub clob: &'static str,
pub gamma: &'static str,
pub data: &'static str,
pub relayer: &'static str,
pub rfq: &'static str,
pub clob_ws: &'static str,
pub rtds_ws: &'static str,
pub sports_ws: &'static str,
pub collateral_token: EvmAddress,
}Expand description
Production and preproduction environment configuration.
Fields§
§name: &'static str§chain_id: u64§rpc: &'static str§clob: &'static str§gamma: &'static str§data: &'static str§relayer: &'static str§rfq: &'static str§clob_ws: &'static str§rtds_ws: &'static str§sports_ws: &'static str§collateral_token: EvmAddressImplementations§
Source§impl Environment
impl Environment
Sourcepub fn production() -> Self
pub fn production() -> Self
Polymarket production environment.
Sourcepub fn preproduction() -> Self
pub fn preproduction() -> Self
Polymarket preproduction environment (HTTP endpoints only differ from production).
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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