#[non_exhaustive]pub enum Environment {
Practice,
Live,
Custom {
rest: Url,
stream: Url,
},
}Expand description
The OANDA environment (host pair) a Client talks to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Practice
The fxTrade Practice (demo) environment:
api-fxpractice.oanda.com / stream-fxpractice.oanda.com.
Live
The fxTrade live environment:
api-fxtrade.oanda.com / stream-fxtrade.oanda.com.
Custom
Custom host pair, mainly for tests and proxies. Both URLs are used
as-is (the /v3 prefix is not appended).
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