Struct interceptor::mock::mock_builder::MockBuilder
source · pub struct MockBuilder {
pub build: Box<dyn Fn(&str) -> MockBuilderResult + Send + Sync + 'static>,
}
Expand description
MockBuilder is a mock Builder for testing.
Fields§
§build: Box<dyn Fn(&str) -> MockBuilderResult + Send + Sync + 'static>
Implementations§
source§impl MockBuilder
impl MockBuilder
Trait Implementations§
source§impl InterceptorBuilder for MockBuilder
impl InterceptorBuilder for MockBuilder
fn build(&self, id: &str) -> MockBuilderResult
Auto Trait Implementations§
impl !RefUnwindSafe for MockBuilder
impl Send for MockBuilder
impl Sync for MockBuilder
impl Unpin for MockBuilder
impl !UnwindSafe for MockBuilder
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