Skip to main content

Env

Trait Env 

Source
pub trait Env:
    'static
    + AsRef<str>
    + Debug
    + Send
    + Sync
    + Unpin {
    // Required methods
    fn from_str(val: &str) -> Option<Self>
       where Self: Sized;
    fn fps_host(&self) -> &str;
    fn freedom_entrypoint(&self) -> Url;
}
Expand description

Shared behavior for atlas environments

Required Methods§

Source

fn from_str(val: &str) -> Option<Self>
where Self: Sized,

Source

fn fps_host(&self) -> &str

The hostname of the FPS for the given environment

Source

fn freedom_entrypoint(&self) -> Url

The entrypoint for the freedom API for the given environment

§Note

Each environment contains the path “/api” as all requests initiate from this point

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Env for Prod

Source§

impl Env for Test