pub struct FirewallApiService { /* private fields */ }Implementations§
Source§impl FirewallApiService
impl FirewallApiService
pub fn new(client: Arc<NodestyApiClient>) -> Self
pub async fn get_attack_logs( &self, service_id: &str, ip: &str, ) -> Result<ApiResponse<Vec<FirewallAttackLog>>, Error>
pub async fn get_attack_notification_settings( &self, service_id: &str, ip: &str, ) -> Result<ApiResponse<AttackNotificationSettings>, Error>
pub async fn update_attack_notification_settings( &self, service_id: &str, ip: &str, data: AttackNotificationSettings, ) -> Result<ApiResponse<AttackNotificationSettings>, Error>
pub async fn reset_reverse_dns( &self, service_id: &str, ip: &str, ) -> Result<ApiResponse<()>, Error>
pub async fn get_reverse_dns( &self, service_id: &str, ip: &str, ) -> Result<ApiResponse<FirewallReverseDns>, Error>
pub async fn upsert_reverse_dns( &self, service_id: &str, ip: &str, data: FirewallReverseDns, ) -> Result<ApiResponse<()>, Error>
pub async fn delete_rule( &self, service_id: &str, ip: &str, rule_id: u32, ) -> Result<ApiResponse<()>, Error>
pub async fn get_rules( &self, service_id: &str, ip: &str, ) -> Result<ApiResponse<Vec<FirewallRule>>, Error>
pub async fn create_rule( &self, service_id: &str, ip: &str, data: FirewallCreateRuleData, ) -> Result<ApiResponse<()>, Error>
pub async fn get_statistics( &self, service_id: &str, ip: &str, ) -> Result<ApiResponse<Vec<FirewallStatistics>>, Error>
Auto Trait Implementations§
impl Freeze for FirewallApiService
impl !RefUnwindSafe for FirewallApiService
impl Send for FirewallApiService
impl Sync for FirewallApiService
impl Unpin for FirewallApiService
impl !UnwindSafe for FirewallApiService
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