pub struct StandingWork {
pub work_id: String,
pub agent_id: String,
pub family: String,
pub spec: String,
pub catalog_version: i64,
pub proposal_id: Option<String>,
pub plan_version: i64,
pub effective_from: String,
pub status: String,
pub updated_by: String,
pub updated_at: String,
}Expand description
常驻工作:网关声明该 Agent 应当持续执行的工作。
粒度是采集面(一个面 = 一份工作),不是 capability:一份 collect_logs 会裹住十几个面,
那样「按面暂停 / 限流 / 审计」全都无从下手。面由模板的 family_scope 展开而来,
不携带 capability —— 该面由哪个采集器承接,由 spec 里的单元各自决定。
Fields§
§work_id: String§agent_id: String§family: String采集面(CollectionFamily)。
spec: String工作参数:由采集目录的条目组合而成(不是自由文本),随 plan_version 整体替换。
catalog_version: i64本工作按哪一版目录展开:目录换版不追改已授权工作(要跟新版得走新提案 + 审定)。
proposal_id: Option<String>生效依据:指向已批准的提案(人工直填 spec 时为空)。
plan_version: i64期望版本:网关每次改动 +1;agentd 回报实际版本,与它比对即得漂移。
effective_from: String§status: String§updated_by: String§updated_at: StringTrait Implementations§
Source§impl Clone for StandingWork
impl Clone for StandingWork
Source§fn clone(&self) -> StandingWork
fn clone(&self) -> StandingWork
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 StandingWork
impl Debug for StandingWork
Source§impl<'de> Deserialize<'de> for StandingWork
impl<'de> Deserialize<'de> for StandingWork
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StandingWork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StandingWork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StandingWork
Source§impl JumoItem for StandingWork
impl JumoItem for StandingWork
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 StandingWork
impl PartialEq for StandingWork
Source§impl Serialize for StandingWork
impl Serialize for StandingWork
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 StandingWork
Auto Trait Implementations§
impl Freeze for StandingWork
impl RefUnwindSafe for StandingWork
impl Send for StandingWork
impl Sync for StandingWork
impl Unpin for StandingWork
impl UnsafeUnpin for StandingWork
impl UnwindSafe for StandingWork
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