pub struct ResponseItem {
pub id: i64,
pub name: String,
pub agent_instance_hierarchy: String,
pub command: Vec<String>,
pub description: String,
pub created_at: String,
pub last_ran_at: Option<String>,
pub interval: Option<String>,
pub version: u64,
pub plugin: Option<Plugin>,
}Expand description
One schedule row.
Fields§
§id: i64The schedules row id. Monotonic; pass the highest id from a
page as the next request’s after_id to paginate forward.
name: StringThe --name passed to agents tasks schedule. Unique per
agent_instance_hierarchy.
agent_instance_hierarchy: String§command: Vec<String>§description: String§created_at: StringRFC3339 timestamp this schedule row was created.
last_ran_at: Option<String>RFC3339 timestamp of the most recent invocation — this row’s
newest tasks_runs entry. None until the runner has fired
this version at least once (runs are tracked per-version).
interval: Option<String>None for a oneshot; Some("30s" / "1h" / "1d12h" / …)
for a recurring schedule, formatted as humantime so the
list output reads naturally without a unit-conversion
step at the consumer. The CLI parser accepts the same
shape on agents tasks schedule --interval.
version: u64This row’s version: 1 for a freshly scheduled task,
max + 1 for each tasks schedule --overwrite (each version
is its own row; only the newest lists).
plugin: Option<Plugin>The plugin that registered this schedule (its (owner, repository, version) coordinate), or None when it was not
scheduled by a plugin.
Trait Implementations§
Source§impl Clone for ResponseItem
impl Clone for ResponseItem
Source§fn clone(&self) -> ResponseItem
fn clone(&self) -> ResponseItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandResponse for ResponseItem
Available on crate feature mcp only.
impl CommandResponse for ResponseItem
mcp only.fn into_mcp(self) -> McpResponseItem
Source§impl Debug for ResponseItem
impl Debug for ResponseItem
Source§impl<'de> Deserialize<'de> for ResponseItem
impl<'de> Deserialize<'de> for ResponseItem
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>,
impl Eq for ResponseItem
Source§impl JsonSchema for ResponseItem
impl JsonSchema for ResponseItem
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ResponseItem
impl PartialEq for ResponseItem
Source§fn eq(&self, other: &ResponseItem) -> bool
fn eq(&self, other: &ResponseItem) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseItem
impl Serialize for ResponseItem
impl StructuralPartialEq for ResponseItem
Auto Trait Implementations§
impl Freeze for ResponseItem
impl RefUnwindSafe for ResponseItem
impl Send for ResponseItem
impl Sync for ResponseItem
impl Unpin for ResponseItem
impl UnsafeUnpin for ResponseItem
impl UnwindSafe for ResponseItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more