pub struct StaticConfigProvider(/* private fields */);Expand description
A provider a test constructs from any values, with no database and no fetch. Passing one to the builder disables fetch, store, refresh, and the identifier check.
Implementations§
Source§impl StaticConfigProvider
impl StaticConfigProvider
pub fn new(configuration: ServerConfiguration) -> Self
Sourcepub fn edited(edit: impl FnOnce(&mut ServerConfiguration)) -> Self
pub fn edited(edit: impl FnOnce(&mut ServerConfiguration)) -> Self
Start from the compiled defaults and change only what a test needs.
Trait Implementations§
Source§impl Clone for StaticConfigProvider
impl Clone for StaticConfigProvider
Source§fn clone(&self) -> StaticConfigProvider
fn clone(&self) -> StaticConfigProvider
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 moreSource§impl ConfigProvider for StaticConfigProvider
impl ConfigProvider for StaticConfigProvider
fn server_configuration(&self) -> &ServerConfiguration
Source§impl Debug for StaticConfigProvider
impl Debug for StaticConfigProvider
Source§impl Default for StaticConfigProvider
impl Default for StaticConfigProvider
Source§fn default() -> StaticConfigProvider
fn default() -> StaticConfigProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StaticConfigProvider
impl RefUnwindSafe for StaticConfigProvider
impl Send for StaticConfigProvider
impl Sync for StaticConfigProvider
impl Unpin for StaticConfigProvider
impl UnsafeUnpin for StaticConfigProvider
impl UnwindSafe for StaticConfigProvider
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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