pub enum Command {
Show 25 variants
KvSet {
key: String,
value: String,
},
KvIncrement {
key: String,
},
KvInsertIfAbsent {
key: String,
value: String,
},
KvDelete {
key: String,
},
TaskCreate {
new: NewTask,
internal: bool,
},
TaskUpsertExternal(UpsertExternalCmd),
TaskUpdateStatusAndFields {
id: i64,
status: TaskStatus,
updates: Vec<(String, Value)>,
},
TaskUpdateStatus {
id: i64,
status: TaskStatus,
expected: Option<TaskStatus>,
},
TaskUpdateExternalId {
id: i64,
external_id: String,
},
TaskTouch {
id: i64,
},
TaskResetToNew {
id: i64,
},
TaskSetFields {
id: i64,
updates: Vec<(String, Value)>,
silent: bool,
},
TaskIncrement {
id: i64,
field: String,
},
TaskResetCounters {
id: i64,
failure_only: bool,
},
TaskStoreRoute(StoreRouteCmd),
TaskSetEstimateIfZero {
id: i64,
estimate: u8,
},
TaskAppendMemory {
id: i64,
entry: MemoryEntry,
},
TaskMarkCleaned {
id: i64,
},
MoveRepo {
old: String,
new: String,
},
DepReplace {
task_id: i64,
rows: Vec<NewDependency>,
},
DepLinkKnown {
task_id: i64,
repo: String,
number: i64,
},
DepBlockClaim {
task_id: i64,
},
JobStateUpsert(JobState),
ChannelSubscribe {
channel: String,
thread_id: String,
repo: String,
topic_id: String,
},
ChannelUnsubscribe {
channel: String,
thread_id: String,
repo: String,
},
}Variants§
KvSet
KvIncrement
KvInsertIfAbsent
KvDelete
TaskCreate
TaskUpsertExternal(UpsertExternalCmd)
TaskUpdateStatusAndFields
TaskUpdateStatus
TaskUpdateExternalId
TaskTouch
TaskResetToNew
TaskSetFields
TaskIncrement
TaskResetCounters
TaskStoreRoute(StoreRouteCmd)
TaskSetEstimateIfZero
TaskAppendMemory
TaskMarkCleaned
MoveRepo
DepReplace
DepLinkKnown
DepBlockClaim
JobStateUpsert(JobState)
ChannelSubscribe
ChannelUnsubscribe
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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
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<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> 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> ⓘ
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