pub struct AckWork {
pub api_version: String,
pub kind: String,
pub agent_id: String,
pub instance_id: String,
pub work_id: String,
pub plan_version: i64,
pub acknowledged_at: String,
}Expand description
agentd → 网关:确认收到某份工作。
常驻工作在 plan_version 变化后也必须确认:网关据此判断「期望的版本真到了吗」,
一直没确认的就是漂移。
Fields§
§api_version: String§kind: String§agent_id: String§instance_id: String§work_id: String§plan_version: i64§acknowledged_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for AckWork
impl<'de> Deserialize<'de> for AckWork
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 AckWork
impl StructuralPartialEq for AckWork
Auto Trait Implementations§
impl Freeze for AckWork
impl RefUnwindSafe for AckWork
impl Send for AckWork
impl Sync for AckWork
impl Unpin for AckWork
impl UnsafeUnpin for AckWork
impl UnwindSafe for AckWork
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