pub struct ProfilingSessionCreate {
pub environment: Option<String>,
pub language: Language,
pub metadata: Option<Map<String, Value>>,
pub name: Option<String>,
pub session_id: String,
pub traces: Vec<ProfilingTrace>,
pub version: Option<String>,
}Expand description
Request to create a new profiling session with traces.
JSON schema
{
"title": "ProfilingSessionCreate",
"description": "Request to create a new profiling session with traces.",
"type": "object",
"required": [
"language",
"session_id",
"traces"
],
"properties": {
"environment": {
"title": "Environment",
"description": "Environment (dev, staging, production)",
"type": [
"string",
"null"
]
},
"language": {
"title": "Language",
"description": "Programming language",
"type": "string",
"enum": [
"python",
"java",
"go",
"typescript",
"javascript",
"ruby",
"rust",
"c++",
"c#",
"php"
]
},
"metadata": {
"title": "Metadata",
"description": "Additional session metadata",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"name": {
"title": "Name",
"description": "Human-readable name for the session",
"type": [
"string",
"null"
]
},
"session_id": {
"title": "Session Id",
"description": "Unique identifier for this profiling session",
"type": "string"
},
"traces": {
"title": "Traces",
"description": "List of profiling traces",
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfilingTrace"
},
"minItems": 1
},
"version": {
"title": "Version",
"description": "Application/library version",
"type": [
"string",
"null"
]
}
}
}Fields§
§environment: Option<String>Environment (dev, staging, production)
language: LanguageProgramming language
metadata: Option<Map<String, Value>>Additional session metadata
name: Option<String>Human-readable name for the session
session_id: StringUnique identifier for this profiling session
traces: Vec<ProfilingTrace>List of profiling traces
version: Option<String>Application/library version
Implementations§
Source§impl ProfilingSessionCreate
impl ProfilingSessionCreate
pub fn builder() -> ProfilingSessionCreate
Trait Implementations§
Source§impl Clone for ProfilingSessionCreate
impl Clone for ProfilingSessionCreate
Source§fn clone(&self) -> ProfilingSessionCreate
fn clone(&self) -> ProfilingSessionCreate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfilingSessionCreate
impl Debug for ProfilingSessionCreate
Source§impl<'de> Deserialize<'de> for ProfilingSessionCreate
impl<'de> Deserialize<'de> for ProfilingSessionCreate
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 From<&ProfilingSessionCreate> for ProfilingSessionCreate
impl From<&ProfilingSessionCreate> for ProfilingSessionCreate
Source§fn from(value: &ProfilingSessionCreate) -> Self
fn from(value: &ProfilingSessionCreate) -> Self
Converts to this type from the input type.
Source§impl From<ProfilingSessionCreate> for ProfilingSessionCreate
impl From<ProfilingSessionCreate> for ProfilingSessionCreate
Source§fn from(value: ProfilingSessionCreate) -> Self
fn from(value: ProfilingSessionCreate) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProfilingSessionCreate
impl Serialize for ProfilingSessionCreate
Source§impl TryFrom<ProfilingSessionCreate> for ProfilingSessionCreate
impl TryFrom<ProfilingSessionCreate> for ProfilingSessionCreate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProfilingSessionCreate) -> Result<Self, ConversionError>
fn try_from(value: ProfilingSessionCreate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProfilingSessionCreate
impl RefUnwindSafe for ProfilingSessionCreate
impl Send for ProfilingSessionCreate
impl Sync for ProfilingSessionCreate
impl Unpin for ProfilingSessionCreate
impl UnwindSafe for ProfilingSessionCreate
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