pub enum SerializeRecord<'a> {
Ser(&'a Record<'a>),
De(BTreeMap<CowString<'a>, SerializeValue<'a>>),
}
Expand description
Implements serde::Serialize
to write Record
data to a serializer.
Variants§
Implementations§
source§impl<'a> SerializeRecord<'a>
impl<'a> SerializeRecord<'a>
pub fn to_owned(&self) -> SerializeRecord<'static>
Trait Implementations§
source§impl<'a> Debug for SerializeRecord<'a>
impl<'a> Debug for SerializeRecord<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for SerializeRecord<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SerializeRecord<'a>
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<'a> From<BTreeMap<CowString<'a>, SerializeValue<'a>>> for SerializeRecord<'a>
impl<'a> From<BTreeMap<CowString<'a>, SerializeValue<'a>>> for SerializeRecord<'a>
source§impl<'a> Serialize for SerializeRecord<'a>
impl<'a> Serialize for SerializeRecord<'a>
impl Send for SerializeRecord<'static>
SAFETY: If all data is ’static and/or owned, it is safe to send between threads.
Auto Trait Implementations§
impl<'a> Freeze for SerializeRecord<'a>
impl<'a> !RefUnwindSafe for SerializeRecord<'a>
impl<'a> !Sync for SerializeRecord<'a>
impl<'a> Unpin for SerializeRecord<'a>
impl<'a> !UnwindSafe for SerializeRecord<'a>
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