#[non_exhaustive]pub struct ProposalResponse {
pub request_id: String,
pub proposal_id: Option<String>,
pub decision: ProposalDecision,
pub state: ProposalState,
pub confirmed_policy_version: u64,
pub candidate_snapshot: Option<PolicySnapshot>,
pub new_checkpoint_count: u64,
}Expand description
Deterministic response returned by crate::adaptive::AdaptiveStateMachine::propose.
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.request_id: StringIdempotency key echoed from the request.
proposal_id: Option<String>Proposal identifier associated with this response (if created).
decision: ProposalDecisionOutcome decision (keep, keep_pending, shadow_proposal, active_proposal).
state: ProposalStateLifecycle state of the proposal after commit.
confirmed_policy_version: u64Confirmed policy version active on the kernel at response time.
candidate_snapshot: Option<PolicySnapshot>Candidate policy snapshot when a shadow or active proposal is emitted.
new_checkpoint_count: u64Number of new checkpoints created by this call (0 on idempotent replay).
Trait Implementations§
Source§impl Clone for ProposalResponse
impl Clone for ProposalResponse
Source§impl Debug for ProposalResponse
impl Debug for ProposalResponse
Source§impl<'de> Deserialize<'de> for ProposalResponse
impl<'de> Deserialize<'de> for ProposalResponse
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 ProposalResponse
impl PartialEq for ProposalResponse
Source§impl Serialize for ProposalResponse
impl Serialize for ProposalResponse
impl StructuralPartialEq for ProposalResponse
Auto Trait Implementations§
impl Forget for ProposalResponse
impl Freeze for ProposalResponse
impl Move for ProposalResponse
impl RefUnwindSafe for ProposalResponse
impl Send for ProposalResponse
impl Sync for ProposalResponse
impl Unpin for ProposalResponse
impl UnsafeUnpin for ProposalResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
impl UnwindSafe for ProposalResponse
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