pub struct SerializeAttributes<'a> {
pub metadata: SerializeMetadata<'a>,
pub parent: Option<SerializeId>,
pub is_root: bool,
}Expand description
Implements serde::Serialize to write Attributes data to a serializer.
Fields
metadata: SerializeMetadata<'a>parent: Option<SerializeId>is_root: boolImplementations
sourceimpl<'a> SerializeAttributes<'a>
impl<'a> SerializeAttributes<'a>
pub fn to_owned(&self) -> SerializeAttributes<'static>
Trait Implementations
sourceimpl<'a> Debug for SerializeAttributes<'a>
impl<'a> Debug for SerializeAttributes<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for SerializeAttributes<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SerializeAttributes<'a>
sourcefn 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
sourceimpl<'a> Serialize for SerializeAttributes<'a>
impl<'a> Serialize for SerializeAttributes<'a>
impl Send for SerializeAttributes<'static>
SAFETY: If all data is ’static and/or owned, it is safe to send between threads.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SerializeAttributes<'a>
impl<'a> Sync for SerializeAttributes<'a>
impl<'a> Unpin for SerializeAttributes<'a>
impl<'a> !UnwindSafe for SerializeAttributes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
