pub enum ServerStrategy {
BaseUrl,
Single(String),
Env,
}
Variants§
BaseUrl
No servers were provided, so we pass a base URL
Single(String)
There’s only one
Env
There’s multiple choices
Implementations§
Source§impl ServerStrategy
impl ServerStrategy
pub fn env_var_for_strategy(&self, service_name: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for ServerStrategy
impl RefUnwindSafe for ServerStrategy
impl Send for ServerStrategy
impl Sync for ServerStrategy
impl Unpin for ServerStrategy
impl UnwindSafe for ServerStrategy
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