pub enum Environment {
Sandbox,
Production,
Custom(Url),
}Expand description
Environment configuration for the Noah API
Determines which API endpoint the client will connect to.
§Examples
use noah_sdk::Environment;
// Use sandbox for testing
let env = Environment::Sandbox;
// Use production
let env = Environment::Production;
// Use custom endpoint
let custom_url = url::Url::parse("https://api.example.com/v1").unwrap();
let env = Environment::Custom(custom_url);Variants§
Implementations§
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 · 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 Environment
impl Debug for Environment
Source§impl Default for Environment
impl Default for Environment
Source§fn default() -> Environment
fn default() -> Environment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin 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