pub struct Goldrust {
pub golden_file_path: PathBuf,
pub response_source: ResponseSource,
pub save_check: bool,
/* private fields */
}
Fields§
§golden_file_path: PathBuf
The path to the golden file, which was automatically generated based on the thread name of the test
response_source: ResponseSource
§save_check: bool
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Goldrust
impl<'de> Deserialize<'de> for Goldrust
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Drop for Goldrust
impl Drop for Goldrust
This ensures that the content is saved to the golden file when an update is required.
source§impl Ord for Goldrust
impl Ord for Goldrust
source§impl PartialOrd for Goldrust
impl PartialOrd for Goldrust
impl Eq for Goldrust
impl StructuralPartialEq for Goldrust
Auto Trait Implementations§
impl Freeze for Goldrust
impl RefUnwindSafe for Goldrust
impl Send for Goldrust
impl Sync for Goldrust
impl Unpin for Goldrust
impl UnwindSafe for Goldrust
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)