pub struct BaseOverride {
pub source: &'static str,
pub env: &'static str,
pub selects_test_client: bool,
}Expand description
One overridable source.
Fields§
§source: &'static strThe HTTP client’s source key, i.e. the key the source passes to
HttpClient::fetch_*.
env: &'static strThe environment variable naming the replacement base URL.
selects_test_client: boolWhether setting this variable switches the whole process to the allow-http test client. See the module docs for why only some do.
Trait Implementations§
Source§impl Clone for BaseOverride
impl Clone for BaseOverride
Source§fn clone(&self) -> BaseOverride
fn clone(&self) -> BaseOverride
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 moreimpl Copy for BaseOverride
Source§impl Debug for BaseOverride
impl Debug for BaseOverride
impl Eq for BaseOverride
Source§impl PartialEq for BaseOverride
impl PartialEq for BaseOverride
Source§fn eq(&self, other: &BaseOverride) -> bool
fn eq(&self, other: &BaseOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BaseOverride
Auto Trait Implementations§
impl Freeze for BaseOverride
impl RefUnwindSafe for BaseOverride
impl Send for BaseOverride
impl Sync for BaseOverride
impl Unpin for BaseOverride
impl UnsafeUnpin for BaseOverride
impl UnwindSafe for BaseOverride
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