pub fn child(&self) -> Self {
        let event_event = match &self.event {
            Some(event) => event.clone(),
            None => event_fields::Event::default(),
        };

        Self {
            event: Some(event_fields::Event {
                kind: event_event.kind,
                ..Default::default()
            }),
            trace: self.trace.clone(),
            span: Span::default(),
            ..Default::default()
        }
    }
// A new event that is part of the same trace, and defaults to having the
// same `event.kind` value.
A new event that is part of the same trace, and defaults to having the
same `event.kind` value.
A new event that is part of the same trace and defaults to having the same ` event . kind ` value .
pub fn child(&self) -> Self {
        let event_event = match &self.event {
            Some(event) => event.clone(),
            None => event_fields::Event::default(),
        };
        Self {
            event: Some(event_fields::Event {
                kind: event_event.kind,
                ..Default::default()
            }),
            trace: self.trace.clone(),
            span: Span::default(),
            ..Default::default()
        }
    }
pub fn child ( & self ) -> Self { let event_event = match & self . event { Some ( event ) => event . clone ( ) , None => event_fields :: Event :: default ( ) , } ; Self { event : Some ( event_fields :: Event { kind : event_event . kind , .. Default :: default ( ) } ) , trace : self . trace . clone ( ) , span : Span :: default ( ) , .. Default :: default ( ) } }
A new event that is part of the same trace, and defaults to having the
same `event.kind` value.
A new event that is part of the same trace and defaults to having the same ` event . kind ` value .
&self
&self