busbar_sf_tooling/client/
trace_flags.rs1use tracing::instrument;
2
3use crate::error::Result;
4use crate::types::*;
5
6impl super::ToolingClient {
7 #[instrument(skip(self))]
9 pub async fn get_trace_flags(&self) -> Result<Vec<TraceFlag>> {
10 self.query_all(
11 "SELECT Id, TracedEntityId, LogType, DebugLevelId, StartDate, ExpirationDate FROM TraceFlag"
12 ).await
13 }
14
15 #[instrument(skip(self))]
17 pub async fn get_debug_levels(&self) -> Result<Vec<DebugLevel>> {
18 self.query_all(
19 "SELECT Id, DeveloperName, MasterLabel, ApexCode, ApexProfiling, Callout, Database, System, Validation, Visualforce, Workflow FROM DebugLevel"
20 ).await
21 }
22}