pub struct RuleContext {
pub action_type: String,
pub command: String,
pub description: String,
pub workflow_id: Option<String>,
pub estimated_cost: Option<f64>,
}Expand description
Context for evaluating policy rules against an action.
Fields§
§action_type: String§command: String§description: String§workflow_id: Option<String>§estimated_cost: Option<f64>Trait Implementations§
Source§impl Clone for RuleContext
impl Clone for RuleContext
Source§fn clone(&self) -> RuleContext
fn clone(&self) -> RuleContext
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 moreAuto Trait Implementations§
impl Freeze for RuleContext
impl RefUnwindSafe for RuleContext
impl Send for RuleContext
impl Sync for RuleContext
impl Unpin for RuleContext
impl UnsafeUnpin for RuleContext
impl UnwindSafe for RuleContext
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