#[non_exhaustive]pub struct RoutePolicyPolicyTerm {
pub actions: Vec<Expr>,
pub match: Option<Expr>,
pub priority: Option<i32>,
/* private fields */
}Available on crate feature
routers only.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: Vec<Expr>CEL expressions to evaluate to modify a route when this term matches.
match: Option<Expr>CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes.
priority: Option<i32>The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list.
Implementations§
Source§impl RoutePolicyPolicyTerm
impl RoutePolicyPolicyTerm
pub fn new() -> Self
Sourcepub fn set_actions<T, V>(self, v: T) -> Self
pub fn set_actions<T, V>(self, v: T) -> Self
Sourcepub fn set_or_clear_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_match<T>(self, v: Option<T>) -> Self
Sourcepub fn set_priority<T>(self, v: T) -> Self
pub fn set_priority<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RoutePolicyPolicyTerm
impl Clone for RoutePolicyPolicyTerm
Source§fn clone(&self) -> RoutePolicyPolicyTerm
fn clone(&self) -> RoutePolicyPolicyTerm
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 RoutePolicyPolicyTerm
impl Debug for RoutePolicyPolicyTerm
Source§impl Default for RoutePolicyPolicyTerm
impl Default for RoutePolicyPolicyTerm
Source§fn default() -> RoutePolicyPolicyTerm
fn default() -> RoutePolicyPolicyTerm
Returns the “default value” for a type. Read more
Source§impl Message for RoutePolicyPolicyTerm
impl Message for RoutePolicyPolicyTerm
Source§impl PartialEq for RoutePolicyPolicyTerm
impl PartialEq for RoutePolicyPolicyTerm
impl StructuralPartialEq for RoutePolicyPolicyTerm
Auto Trait Implementations§
impl Freeze for RoutePolicyPolicyTerm
impl RefUnwindSafe for RoutePolicyPolicyTerm
impl Send for RoutePolicyPolicyTerm
impl Sync for RoutePolicyPolicyTerm
impl Unpin for RoutePolicyPolicyTerm
impl UnwindSafe for RoutePolicyPolicyTerm
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