binary_options_tools 0.2.0

High-level library for binary options trading automation. Supports PocketOption and ExpertOption with real-time data streaming, WebSocket API access, and automated trading strategies.
Documentation
1
2
3
4
5
6
7
8
9
10
pub trait ValidatorTrait {
    /// Validates the given data and returns a boolean indicating if the data is valid or not.
    fn call(&self, data: &str) -> bool;
}

impl<T: Fn(&str) -> bool + Send + Sync + 'static> ValidatorTrait for T {
    fn call(&self, data: &str) -> bool {
        self(data)
    }
}