pub struct CommodityDataTool;Implementations§
Source§impl CommodityDataTool
impl CommodityDataTool
pub async fn get_session_cached_symbols( &self, session_id: &str, ) -> Result<Vec<String>, BrightDataError>
pub async fn clear_symbol_cache( &self, symbol: &str, session_id: &str, ) -> Result<(), BrightDataError>
pub async fn clear_session_cache( &self, session_id: &str, ) -> Result<u32, BrightDataError>
pub async fn get_cache_stats(&self) -> Result<Value, BrightDataError>
pub async fn test_connectivity_with_cache( &self, ) -> Result<String, BrightDataError>
Sourcepub async fn test_connectivity(&self) -> Result<String, BrightDataError>
pub async fn test_connectivity(&self) -> Result<String, BrightDataError>
Test both direct API and proxy connectivity
Trait Implementations§
Source§impl Tool for CommodityDataTool
impl Tool for CommodityDataTool
fn name(&self) -> &str
fn description(&self) -> &str
fn input_schema(&self) -> Value
fn execute<'life0, 'async_trait>(
&'life0 self,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, BrightDataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_internal<'life0, 'async_trait>(
&'life0 self,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, BrightDataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_legacy<'life0, 'async_trait>(
&'life0 self,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, BrightDataError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for CommodityDataTool
impl RefUnwindSafe for CommodityDataTool
impl Send for CommodityDataTool
impl Sync for CommodityDataTool
impl Unpin for CommodityDataTool
impl UnwindSafe for CommodityDataTool
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