pub struct SerializeAttributes<'a> {
    pub metadata: SerializeMetadata<'a>,
    pub parent: Option<SerializeId>,
    pub is_root: bool,
    pub fields: SerializeSpanFields<'a>,
}Expand description
Implements serde::Serialize to write Attributes data to a serializer.
Fields§
§metadata: SerializeMetadata<'a>§parent: Option<SerializeId>§is_root: bool§fields: SerializeSpanFields<'a>Implementations§
source§impl<'a> SerializeAttributes<'a>
 
impl<'a> SerializeAttributes<'a>
pub fn to_owned(&self) -> SerializeAttributes<'static>
Trait Implementations§
source§impl<'a> Debug for SerializeAttributes<'a>
 
impl<'a> Debug for SerializeAttributes<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for SerializeAttributes<'a>
 
impl<'de: 'a, 'a> Deserialize<'de> for SerializeAttributes<'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> 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> Freeze for SerializeAttributes<'a>
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§
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