pub struct ForexDataTool;Implementations§
Source§impl ForexDataTool
impl ForexDataTool
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 ForexDataTool
impl Tool for ForexDataTool
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 ForexDataTool
impl RefUnwindSafe for ForexDataTool
impl Send for ForexDataTool
impl Sync for ForexDataTool
impl Unpin for ForexDataTool
impl UnwindSafe for ForexDataTool
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