pub struct JsonString<'s>(pub &'s str);Expand description
A string as a JSON string literal, quotes included.
Tuple Fields§
§0: &'s strTrait Implementations§
Source§impl<'s> Clone for JsonString<'s>
impl<'s> Clone for JsonString<'s>
impl<'s> Copy for JsonString<'s>
Source§impl<'s> Debug for JsonString<'s>
impl<'s> Debug for JsonString<'s>
Auto Trait Implementations§
impl<'s> Forget for JsonString<'s>
impl<'s> Freeze for JsonString<'s>
impl<'s> Move for JsonString<'s>
impl<'s> RefUnwindSafe for JsonString<'s>
impl<'s> Send for JsonString<'s>
impl<'s> Sync for JsonString<'s>
impl<'s> Unpin for JsonString<'s>
impl<'s> UnsafeUnpin for JsonString<'s>where
&'s str: UnsafeUnpin,
impl<'s> UnwindSafe for JsonString<'s>where
&'s str: 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