rustfs_notify/rules/mod.rs
1// Copyright 2024 RustFS Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15mod config;
16#[cfg(test)]
17mod config_test;
18pub mod pattern;
19mod pattern_rules;
20#[cfg(test)]
21mod pattern_rules_test;
22#[cfg(test)]
23mod pattern_test;
24mod rules_map;
25#[cfg(test)]
26mod rules_map_test;
27mod subscriber_index;
28mod subscriber_snapshot;
29mod target_id_set;
30pub mod xml_config; // For XML structure definition and parsing
31// Definition and parsing for BucketNotificationConfig
32
33// Re-export key types from submodules for easy access to `crate::rules::TypeName`
34// Re-export key types from submodules for external use
35pub use config::BucketNotificationConfig;
36// Assume that BucketNotificationConfigError is also defined in config.rs
37// Or if it is still an alias for xml_config::ParseConfigError , adjust accordingly
38pub use pattern_rules::PatternRules;
39pub use rules_map::RulesMap;
40pub use subscriber_index::*;
41pub use subscriber_snapshot::*;
42pub use target_id_set::TargetIdSet;
43pub use xml_config::{NotificationConfiguration, ParseConfigError, ParseConfigError as BucketNotificationConfigError};