pub struct Mock {
pub source_file: Option<PathBuf>,
pub parent_name: String,
pub name: String,
pub code: String,
}Expand description
Representation of a mock produced by Mocksmith.
Fields§
§source_file: Option<PathBuf>Path to the header file of the mocked class
parent_name: StringName of the mocked class
name: StringName of the mock
code: StringCode for the mock
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mock
impl RefUnwindSafe for Mock
impl Send for Mock
impl Sync for Mock
impl Unpin for Mock
impl UnwindSafe for Mock
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