pub struct JSON_LOGGER { /* private fields */ }Methods from Deref<Target = JsonLogger>§
pub async fn ensure_log_directory(&self) -> Result<(), Error>
pub async fn start_execution( &self, tool_name: &str, parameters: Value, ) -> ExecutionLog
pub async fn complete_execution( &self, log: ExecutionLog, response: Value, success: bool, error: Option<String>, ) -> Result<(), Box<dyn Error>>
pub async fn log_brightdata_request( &self, execution_id: &str, zone: &str, url: &str, payload: Value, response_status: u16, response_headers: HashMap<String, String>, data_format: &str, ) -> Result<(), Box<dyn Error>>
pub async fn get_execution_logs_by_tool( &self, tool_name: &str, ) -> Result<Vec<ExecutionLog>, Box<dyn Error>>
pub async fn get_daily_summary( &self, date: &str, ) -> Result<Option<Value>, Box<dyn Error>>
Trait Implementations§
Source§impl Deref for JSON_LOGGER
impl Deref for JSON_LOGGER
Source§type Target = JsonLogger
type Target = JsonLogger
The resulting type after dereferencing.
Source§fn deref(&self) -> &JsonLogger
fn deref(&self) -> &JsonLogger
Dereferences the value.
impl LazyStatic for JSON_LOGGER
Auto Trait Implementations§
impl Freeze for JSON_LOGGER
impl RefUnwindSafe for JSON_LOGGER
impl Send for JSON_LOGGER
impl Sync for JSON_LOGGER
impl Unpin for JSON_LOGGER
impl UnwindSafe for JSON_LOGGER
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