pub struct RandomDecisionResolution {
pub priority: i32,
pub decision_request_id: DecisionRequestId,
pub command_request_id: Option<CommandRequestId>,
pub ticket_id: DecisionTicketId,
pub expected_version: u64,
pub controller_id: String,
pub sample: RandomSample,
pub option_weights: Vec<DecisionOptionWeight>,
pub tie_break: Option<Box<PolicyDecision>>,
}Fields§
§priority: i32§decision_request_id: DecisionRequestId§command_request_id: Option<CommandRequestId>§ticket_id: DecisionTicketId§expected_version: u64§controller_id: String§sample: RandomSample§option_weights: Vec<DecisionOptionWeight>§tie_break: Option<Box<PolicyDecision>>The pending decision of a utility-policy controller whose
PendingRandom candidates this draw resolves. None for a
random-policy controller, whose weights cover every available option.
When present, option_weights must equal the pending candidates, and
the generated resolution keeps the pending evaluations, fired guards,
and random stage.
Trait Implementations§
Source§impl Clone for RandomDecisionResolution
impl Clone for RandomDecisionResolution
Source§impl Debug for RandomDecisionResolution
impl Debug for RandomDecisionResolution
Source§impl<'de> Deserialize<'de> for RandomDecisionResolution
impl<'de> Deserialize<'de> for RandomDecisionResolution
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
impl Eq for RandomDecisionResolution
Source§impl PartialEq for RandomDecisionResolution
impl PartialEq for RandomDecisionResolution
Source§impl Serialize for RandomDecisionResolution
impl Serialize for RandomDecisionResolution
impl StructuralPartialEq for RandomDecisionResolution
Auto Trait Implementations§
impl Freeze for RandomDecisionResolution
impl RefUnwindSafe for RandomDecisionResolution
impl Send for RandomDecisionResolution
impl Sync for RandomDecisionResolution
impl Unpin for RandomDecisionResolution
impl UnsafeUnpin for RandomDecisionResolution
impl UnwindSafe for RandomDecisionResolution
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