Skip to main content

Module rules

Module rules 

Source

Re-exports§

pub use xml_config::NotificationConfiguration;
pub use xml_config::ParseConfigError;
pub use xml_config::ParseConfigError as BucketNotificationConfigError;

Modules§

pattern
xml_config

Structs§

BucketNotificationConfig
Configuration for bucket notifications. This struct now holds the parsed and validated rules in the new RulesMap format.
BucketRulesSnapshot
Represents a bucket’s notification subscription view snapshot (immutable).
PatternRules
PatternRules - Event rule that maps object name patterns to TargetID collections. event.Rules (map[string]TargetIDSet) in the Go code
RulesMap
RulesMap - Rule mapping organized by event name。 event.RulesMap (map[Name]Rules) in the corresponding Go code
SubscriberIndex
A global bucket -> snapshot index.

Traits§

RuleEvents
Let the rules structure provide “what events it is subscribed to”. This way BucketRulesSnapshot does not need to know the internal shape of rules.
RulesContainer
Let the rules container provide the ability to iterate over all rules (abstracting only to the minimum necessary).

Type Aliases§

BucketSnapshotRef
Expose Arc form to facilitate sharing.
DynRulesContainer
Unify trait-object snapshot types (fix Sized / missing generic arguments)
TargetIdSet
TargetIDSet - A collection representation of TargetID.