pub struct SpanJson {Show 15 fields
pub name: String,
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
pub start_time_unix_us: u64,
pub end_time_unix_us: u64,
pub status: String,
pub status_message: Option<String>,
pub lease_ids: Vec<String>,
pub ops: Vec<OpJson>,
pub bytes_read: u64,
pub bytes_written: u64,
pub lease_cost_byte_secs: u64,
pub lease_acquire_wait_us: u64,
pub attributes: Vec<(String, String)>,
}Expand description
JSON-serializable mirror of [ResourceSpan].
Fields§
§name: String§trace_id: String§span_id: String§parent_span_id: Option<String>§start_time_unix_us: u64§end_time_unix_us: u64§status: String§status_message: Option<String>§lease_ids: Vec<String>§ops: Vec<OpJson>§bytes_read: u64§bytes_written: u64§lease_cost_byte_secs: u64§lease_acquire_wait_us: u64§attributes: Vec<(String, String)>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanJson
impl<'de> Deserialize<'de> for SpanJson
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
Auto Trait Implementations§
impl Freeze for SpanJson
impl RefUnwindSafe for SpanJson
impl Send for SpanJson
impl Sync for SpanJson
impl Unpin for SpanJson
impl UnwindSafe for SpanJson
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