pub struct OneShotWork {Show 16 fields
pub work_id: String,
pub agent_id: String,
pub action: String,
pub spec: String,
pub scheduled_at: String,
pub deadline_at: String,
pub timeout_seconds: i64,
pub interruptible: bool,
pub status: String,
pub paused_at: Option<String>,
pub paused_total_seconds: i64,
pub current_step: Option<String>,
pub completed_steps: Vec<String>,
pub attempt: i64,
pub issued_by: String,
pub issued_at: String,
}Expand description
一次性工作:有计划开始时间与期限,有明确终态。
Fields§
§work_id: String§agent_id: String§action: String动作面:upgrade / snapshot / exec / …(执行载体是 Reporting 域的 ActionPlan)。
spec: String§scheduled_at: String计划开始时间:到点前不应执行(与「立即派发」区分开)。
deadline_at: String绝对截止:业务要求的时间点,暂停也照走(不由暂停顺延)。
timeout_seconds: i64执行预算(秒):只在实际执行时消耗,暂停期间不计。
interruptible: bool可中断性:只有可中断的动作才允许运行中暂停。
status: String§paused_at: Option<String>当前暂停的起点(运行中暂停才有;恢复后清空)。
paused_total_seconds: i64累计暂停时长(秒):用于审计与「预算未被暂停消耗」的核对。
current_step: Option<String>步级断点:已完成步骤保留、current_step 在恢复时重做。
completed_steps: Vec<String>§attempt: i64已尝试次数(含恢复后的重做)。
issued_by: String§issued_at: StringImplementations§
Source§impl OneShotWork
impl OneShotWork
Trait Implementations§
Source§impl Clone for OneShotWork
impl Clone for OneShotWork
Source§fn clone(&self) -> OneShotWork
fn clone(&self) -> OneShotWork
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 OneShotWork
impl Debug for OneShotWork
Source§impl<'de> Deserialize<'de> for OneShotWork
impl<'de> Deserialize<'de> for OneShotWork
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OneShotWork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OneShotWork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OneShotWork
Source§impl JumoItem for OneShotWork
impl JumoItem for OneShotWork
Source§fn jumo_id() -> Option<&'static str>
fn jumo_id() -> Option<&'static str>
稳定身份:模型条目的全名(如
"Control.Gateway.Management.GatewayHealth")。 Read moreSource§fn jumo_kind() -> &'static str
fn jumo_kind() -> &'static str
.mju item kind:
"struct", "state", "enum", "variant",
"event", "message", "failure", "cap", "actor", "module",
"interface", "storage", "command", "dataflow", "lifecycle",
"layer", "dependency_rule", "decision", "failure_policy",
"flow", "verify", "target". Read moreSource§fn jumo_domain() -> &'static str
fn jumo_domain() -> &'static str
Domain name, e.g.
"Business", "Storage".Source§fn jumo_module() -> Option<&'static str>
fn jumo_module() -> Option<&'static str>
Module name, e.g.
"Design.JumoCore".Source§fn jumo_role() -> Option<&'static str>
fn jumo_role() -> Option<&'static str>
Message role, if kind is
"message": "command", "query", "response".Source§fn jumo_identity() -> Option<&'static str>
fn jumo_identity() -> Option<&'static str>
Failure identity path, if kind is
"failure", e.g. "payment.timeout".Source§fn jumo_storage_kind() -> Option<&'static str>
fn jumo_storage_kind() -> Option<&'static str>
Storage kind, if kind is
"storage":
"table", "document", "key_value", "queue", "object",
"search", "graph", "cache".Source§fn jumo_durability() -> Option<&'static str>
fn jumo_durability() -> Option<&'static str>
Storage durability, if kind is
"storage":
"transient", "persistent", "derived".Source§fn jumo_parent() -> Option<&'static str>
fn jumo_parent() -> Option<&'static str>
Actor parent name, if kind is
"actor", e.g. "User".Source§fn jumo_description() -> Option<&'static str>
fn jumo_description() -> Option<&'static str>
Failure description text, if kind is
"failure".Source§fn jumo_unique_fields() -> &'static [&'static str]
fn jumo_unique_fields() -> &'static [&'static str]
Field names marked
#[jumo(unique)].Source§impl PartialEq for OneShotWork
impl PartialEq for OneShotWork
Source§impl Serialize for OneShotWork
impl Serialize for OneShotWork
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 OneShotWork
Auto Trait Implementations§
impl Freeze for OneShotWork
impl RefUnwindSafe for OneShotWork
impl Send for OneShotWork
impl Sync for OneShotWork
impl Unpin for OneShotWork
impl UnsafeUnpin for OneShotWork
impl UnwindSafe for OneShotWork
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