Struct serde_utils::quoted_u8::Quoted
source · pub struct Quoted<T>{
pub value: T,
}
Expand description
Wrapper type for requiring quotes on a $int
-like type.
Unlike using serde(with = "quoted_$int::require_quotes")
this is composable, and can be nested
inside types like Option
, Result
and Vec
.
Fields§
§value: T
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Quoted<T>
impl<'de, T> Deserialize<'de> for Quoted<T>
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
impl<T> Copy for Quoted<T>
impl<T> Eq for Quoted<T>
impl<T> StructuralPartialEq for Quoted<T>
Auto Trait Implementations§
impl<T> Freeze for Quoted<T>where
T: Freeze,
impl<T> RefUnwindSafe for Quoted<T>where
T: RefUnwindSafe,
impl<T> Send for Quoted<T>where
T: Send,
impl<T> Sync for Quoted<T>where
T: Sync,
impl<T> Unpin for Quoted<T>where
T: Unpin,
impl<T> UnwindSafe for Quoted<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
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
)