pub struct VcrClientBuilder { /* private fields */ }Implementations§
Source§impl VcrClientBuilder
impl VcrClientBuilder
pub fn new<P: Into<PathBuf>>(cassette_path: P) -> Self
pub fn inner_client(self, client: Box<dyn HttpClient>) -> Self
pub fn mode(self, mode: VcrMode) -> Self
pub fn matcher(self, matcher: Box<dyn RequestMatcher>) -> Self
pub fn filter_chain(self, filter_chain: FilterChain) -> Self
pub fn add_filter(self, filter: Box<dyn Filter>) -> Self
pub fn format(self, format: CassetteFormat) -> Self
pub async fn build(self) -> Result<VcrClient, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VcrClientBuilder
impl !RefUnwindSafe for VcrClientBuilder
impl Send for VcrClientBuilder
impl Sync for VcrClientBuilder
impl Unpin for VcrClientBuilder
impl !UnwindSafe for VcrClientBuilder
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