#[non_exhaustive]pub struct RoutingRuleAttributes {
pub actions: Option<Vec<RoutingRuleAction>>,
pub query: Option<String>,
pub time_restriction: Option<TimeRestrictions>,
pub urgency: Option<Urgency>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Defines the configurable attributes of a routing rule, such as actions, query, time restriction, and urgency.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.actions: Option<Vec<RoutingRuleAction>>
Specifies the list of actions to perform when the routing rule matches.
query: Option<String>
Defines the query or condition that triggers this routing rule.
time_restriction: Option<TimeRestrictions>
Holds time zone information and a list of time restrictions for a routing rule.
urgency: Option<Urgency>
Specifies the level of urgency for a routing rule (low, high, or dynamic).
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RoutingRuleAttributes
impl RoutingRuleAttributes
pub fn new() -> RoutingRuleAttributes
pub fn actions(self, value: Vec<RoutingRuleAction>) -> Self
pub fn query(self, value: String) -> Self
pub fn time_restriction(self, value: TimeRestrictions) -> Self
pub fn urgency(self, value: Urgency) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for RoutingRuleAttributes
impl Clone for RoutingRuleAttributes
Source§fn clone(&self) -> RoutingRuleAttributes
fn clone(&self) -> RoutingRuleAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RoutingRuleAttributes
impl Debug for RoutingRuleAttributes
Source§impl Default for RoutingRuleAttributes
impl Default for RoutingRuleAttributes
Source§impl<'de> Deserialize<'de> for RoutingRuleAttributes
impl<'de> Deserialize<'de> for RoutingRuleAttributes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RoutingRuleAttributes
impl PartialEq for RoutingRuleAttributes
Source§impl Serialize for RoutingRuleAttributes
impl Serialize for RoutingRuleAttributes
impl StructuralPartialEq for RoutingRuleAttributes
Auto Trait Implementations§
impl Freeze for RoutingRuleAttributes
impl RefUnwindSafe for RoutingRuleAttributes
impl Send for RoutingRuleAttributes
impl Sync for RoutingRuleAttributes
impl Unpin for RoutingRuleAttributes
impl UnwindSafe for RoutingRuleAttributes
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