Skip to main content

libdd_crashtracker/crash_info/
proc_info.rs

1// Copyright 2024-Present Datadog, Inc. https://www.datadoghq.com/
2// SPDX-License-Identifier: Apache-2.0
3use schemars::JsonSchema;
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
7pub struct ProcInfo {
8    pub pid: u32,
9}
10
11#[cfg(test)]
12impl super::test_utils::TestInstance for ProcInfo {
13    fn test_instance(seed: u64) -> Self {
14        Self { pid: seed as u32 }
15    }
16}