pub struct ContributionConstraint {
pub group: Option<i32>,
pub id: Option<String>,
pub inverse: Option<bool>,
pub name: Option<String>,
pub properties: Option<Value>,
pub relationships: Vec<String>,
}Expand description
Specifies a constraint that can be used to dynamically include/exclude a given contribution
Fields§
§group: Option<i32>An optional property that can be specified to group constraints together. All constraints within a group are AND’d together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR’d (only one group needs to evaluate to True for the contribution to be included).
id: Option<String>Fully qualified identifier of a shared constraint
inverse: Option<bool>If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true)
name: Option<String>Name of the IContributionFilter plugin
properties: Option<Value>Properties that are fed to the contribution filter class
relationships: Vec<String>Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will eliminate the contribution from the tree completely if the constraint is applied.
Implementations§
Trait Implementations§
Source§impl Clone for ContributionConstraint
impl Clone for ContributionConstraint
Source§fn clone(&self) -> ContributionConstraint
fn clone(&self) -> ContributionConstraint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more