pub struct TaskChange {
pub enabled: Option<bool>,
pub description: Option<String>,
pub schedule_mode: Option<String>,
pub settings_overlay: Option<Value>,
}Expand description
A targeted modify request (the keys the caller wants changed —
everything else rides the found record untouched). Builder-ish:
start from TaskChange::default, set what applies.
Deliberately ABSENT, per wire honesty:
- rename — capture §5/Decision 5: a PUT with a changed
nameand the original signature answers 404 empty (the modify route resolves the resource BY the body’s name and finds nothing — no rename, no create, no error body). A rename verb must compose create-new + delete-old; that composite is the CLI tier’s (10-04) documented workflow, NEVER this PUT. - suspend flag — capture §6a proved only a full-record echo
(whose
isSuspendedhappened to befalse) landing; a PUT-DRIVENisSuspendedmutation is unproven. The capture-locked path for the flag is the suspend/resume VERBS (Decision 1) — soTaskChangecarries no flag field at all rather than faking one.
Fields§
§enabled: Option<bool>Flip the record’s top-level enabled key.
description: Option<String>Rewrite the record’s top-level description key.
schedule_mode: Option<String>Rewrite config.profile.scheduleMode. NOTE: scheduleDetails
rides ONLY via the found record’s clone — schedule-mode
changes that also need a new cron/delay string are out of
this change’s scope (the capture vocabulary: §12 — the wire
accepts the mode change; an unsupported pairing lands as
gateway-side state, visible in the read-back as data).
settings_overlay: Option<Value>Deep-merge over the found config.settings (objects merge
recursively, arrays/scalars replace — the documented settings
semantics). The settings OBJECT always rides (the 422 trap).
Trait Implementations§
Source§impl Clone for TaskChange
impl Clone for TaskChange
Source§fn clone(&self) -> TaskChange
fn clone(&self) -> TaskChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more