pub struct RedactedResult<T> {
pub value: T,
pub redacted: Value,
}Available on crate feature
redaction only.Expand description
Result of a redacted JSON response containing both the real and redacted values.
This struct is returned by CallResult::as_json_redacted() and provides
access to both the original deserialized value and the redacted JSON for
snapshot testing.
Fields§
§value: TThe real deserialized value for test assertions.
redacted: ValueThe redacted JSON value for snapshot testing.
Trait Implementations§
Source§impl<T: Clone> Clone for RedactedResult<T>
impl<T: Clone> Clone for RedactedResult<T>
Source§fn clone(&self) -> RedactedResult<T>
fn clone(&self) -> RedactedResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for RedactedResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for RedactedResult<T>where
T: RefUnwindSafe,
impl<T> Send for RedactedResult<T>where
T: Send,
impl<T> Sync for RedactedResult<T>where
T: Sync,
impl<T> Unpin for RedactedResult<T>where
T: Unpin,
impl<T> UnwindSafe for RedactedResult<T>where
T: UnwindSafe,
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