pub struct FieldSet {
pub scope: ScopeFilter,
pub level: Option<LevelFilter>,
pub target: Option<StringFilter>,
pub fields: Vec<FieldFilter>,
pub rate: Option<RatePredicate>,
pub federation: FederationPolicy,
}Expand description
Indexable field constraints for a single EventMatch predicate.
All constraints are ANDed together; absent constraints are wildcards.
The rate constraint is noted here but evaluated by the supervisor (F3)
which maintains the sliding window — matches ignores it.
Fields§
§scope: ScopeFilter§level: Option<LevelFilter>§target: Option<StringFilter>§fields: Vec<FieldFilter>§rate: Option<RatePredicate>Rate constraint from the predicate. Stored for the supervisor but
NOT evaluated in FieldSet::matches — rate requires a sliding window.
federation: FederationPolicyFederation from the rule, applied when scryer fans out to peers.
Trait Implementations§
impl StructuralPartialEq for FieldSet
Auto Trait Implementations§
impl Freeze for FieldSet
impl RefUnwindSafe for FieldSet
impl Send for FieldSet
impl Sync for FieldSet
impl Unpin for FieldSet
impl UnsafeUnpin for FieldSet
impl UnwindSafe for FieldSet
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