pub struct AgentTask {Show 23 fields
pub id: String,
pub workspace_id: String,
pub request_key: String,
pub request_digest: String,
pub agent_name: String,
pub agent_version: String,
pub accepted_identity: Json<Value>,
pub accepted_identity_digest: String,
pub input: String,
pub payload_identity: Vec<u8>,
pub status: AgentTaskStatus,
pub scheduling_reason: Option<String>,
pub scheduling_detail: Option<Json<Value>>,
pub claim_owner: Option<String>,
pub claim_token: Option<String>,
pub lease_expires_at: Option<i64>,
pub claim_attempts: i64,
pub run_id: Option<String>,
pub created_at: i64,
pub updated_at: i64,
pub claimed_at: Option<i64>,
pub completed_at: Option<i64>,
pub last_sequence: i64,
}Fields§
§id: String§workspace_id: String§request_key: String§request_digest: String§agent_name: String§agent_version: String§accepted_identity: Json<Value>§accepted_identity_digest: String§input: String§payload_identity: Vec<u8>§status: AgentTaskStatus§scheduling_reason: Option<String>Raw stored value is retained so older readers preserve future reasons.
scheduling_detail: Option<Json<Value>>§claim_owner: Option<String>§claim_token: Option<String>§lease_expires_at: Option<i64>§claim_attempts: i64§run_id: Option<String>§created_at: i64§updated_at: i64§claimed_at: Option<i64>§completed_at: Option<i64>§last_sequence: i64Implementations§
Source§impl AgentTask
impl AgentTask
pub fn scheduling_reason_kind(&self) -> Option<TaskSchedulingReason>
Trait Implementations§
Source§impl<'a, R: Row> FromRow<'a, R> for AgentTaskwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
Vec<u8>: Decode<'a, R::Database> + Type<R::Database>,
AgentTaskStatus: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Json<Value>>: Decode<'a, R::Database> + Type<R::Database>,
Option<i64>: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for AgentTaskwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
Vec<u8>: Decode<'a, R::Database> + Type<R::Database>,
AgentTaskStatus: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Json<Value>>: Decode<'a, R::Database> + Type<R::Database>,
Option<i64>: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for AgentTask
impl RefUnwindSafe for AgentTask
impl Send for AgentTask
impl Sync for AgentTask
impl Unpin for AgentTask
impl UnsafeUnpin for AgentTask
impl UnwindSafe for AgentTask
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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