pub struct CloneReplaceFieldSource<F, T> { /* private fields */ }
Available on crate feature
wiremock
only.Expand description
Use a Vec
valued field of a CloneReplace<T>
as a RowSource
.
Implementations§
Source§impl<F, T, U> CloneReplaceFieldSource<F, T>
impl<F, T, U> CloneReplaceFieldSource<F, T>
Sourcepub fn new(data: CloneReplace<T>, getter: F) -> Self
pub fn new(data: CloneReplace<T>, getter: F) -> Self
Create a new CloneReplaceFieldSource
.
Here, data
is the CloneReplace<T>
that will provide
the data, and getter
is a lambda that can extract a
Vec<U>
from a &T
.
Trait Implementations§
Source§impl<F, T, U> RowSource for CloneReplaceFieldSource<F, T>
impl<F, T, U> RowSource for CloneReplaceFieldSource<F, T>
Auto Trait Implementations§
impl<F, T> Freeze for CloneReplaceFieldSource<F, T>where
F: Freeze,
impl<F, T> RefUnwindSafe for CloneReplaceFieldSource<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for CloneReplaceFieldSource<F, T>
impl<F, T> Sync for CloneReplaceFieldSource<F, T>
impl<F, T> Unpin for CloneReplaceFieldSource<F, T>where
F: Unpin,
impl<F, T> UnwindSafe for CloneReplaceFieldSource<F, T>where
F: UnwindSafe,
T: RefUnwindSafe,
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