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§fn clone(&self) -> RandomDecisionResolution
fn clone(&self) -> RandomDecisionResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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<RandomDecisionResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RandomDecisionResolution, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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