pub struct RemoteOverride<'a> {
pub credential: SavedCredential<'a>,
pub endpoints: Option<&'a Endpoints>,
pub local_bases: Option<Vec<String>>,
}Expand description
Test seam for the remote fallback. Production passes
RemoteOverride::default, which reads the OS keyring, talks to Google,
and probes the local ports discovery finds; a test supplies each of those
instead so it never touches the real keyring, the network, or /proc.
Fields§
§credential: SavedCredential<'a>Where the saved Google session comes from.
endpoints: Option<&'a Endpoints>Cloud Code endpoints, in place of cloud::Endpoints::default.
local_bases: Option<Vec<String>>Local base URLs to probe, in place of discovery. Some(vec![]) means
“no local server”, which is what sends the fetch down the remote path.
Trait Implementations§
Source§impl<'a> Default for RemoteOverride<'a>
impl<'a> Default for RemoteOverride<'a>
Source§fn default() -> RemoteOverride<'a>
fn default() -> RemoteOverride<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RemoteOverride<'a>
impl<'a> RefUnwindSafe for RemoteOverride<'a>
impl<'a> Send for RemoteOverride<'a>
impl<'a> Sync for RemoteOverride<'a>
impl<'a> Unpin for RemoteOverride<'a>
impl<'a> UnsafeUnpin for RemoteOverride<'a>
impl<'a> UnwindSafe for RemoteOverride<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more