pub fn parse_segment(document: &str) -> Result<StoredSegment, ParseError>Expand description
Parse a single segment document string into a StoredSegment.
A segment document must be a JSON object carrying at minimum a trace_id,
an id, and a name (per the X-Ray segment document schema); anything else
is rejected as a ParseError that surfaces as an UnprocessedTraceSegment.