pub struct ActionProposal {
pub intent_id: String,
pub coord: ActionCoord,
pub action: SuggestedAction,
pub effect: EffectClass,
pub proposed_at_ms: i64,
}Expand description
不可信侧治理 envelope。
core 在边界处为来自 planner 的 SuggestedAction 建立此 envelope:填入确定
性坐标、由可信侧推导 effect。裹在里面的 action 字段本身仍是不可信输入。
Fields§
§intent_id: String运行时关联用(含随机 UUID),不进 canonical hash。
coord: ActionCoord确定性坐标,进 canonical hash。
action: SuggestedAction来自 planner 的不可信建议动作。
effect: EffectClass由 core 可信侧推导填入的副作用分级,非外部输入。
proposed_at_ms: i64提议时间(epoch ms),运行时 volatile,不进 canonical hash。
Trait Implementations§
Source§impl Clone for ActionProposal
impl Clone for ActionProposal
Source§fn clone(&self) -> ActionProposal
fn clone(&self) -> ActionProposal
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 ActionProposal
impl Debug for ActionProposal
Source§impl<'de> Deserialize<'de> for ActionProposal
impl<'de> Deserialize<'de> for ActionProposal
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
Auto Trait Implementations§
impl Freeze for ActionProposal
impl RefUnwindSafe for ActionProposal
impl Send for ActionProposal
impl Sync for ActionProposal
impl Unpin for ActionProposal
impl UnsafeUnpin for ActionProposal
impl UnwindSafe for ActionProposal
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