pub struct WithJson<T> {
pub value: T,
pub json: Option<Value>,
}Fields§
§value: T§json: Option<Value>Trait Implementations§
impl<T: Eq> Eq for WithJson<T>
Source§impl<T> Ord for WithJson<T>where
T: Ord,
impl<T> Ord for WithJson<T>where
T: Ord,
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialOrd for WithJson<T>where
T: PartialOrd,
impl<T> PartialOrd for WithJson<T>where
T: PartialOrd,
impl<T: PartialEq> StructuralPartialEq for WithJson<T>
Auto Trait Implementations§
impl<T> Freeze for WithJson<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithJson<T>where
T: RefUnwindSafe,
impl<T> Send for WithJson<T>where
T: Send,
impl<T> Sync for WithJson<T>where
T: Sync,
impl<T> Unpin for WithJson<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithJson<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WithJson<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