pub enum Operation {
Show 13 variants
Add {
filing: Box<Filing>,
},
Done {
task: String,
},
Priority {
task: String,
priority: i32,
},
Resume {
run: String,
},
Hold {
task: String,
reason: String,
},
Release {
task: String,
},
Retry {
task: String,
title: Option<String>,
instruction: String,
},
RerunChecks {
run: String,
request: String,
head: String,
workflows: Vec<String>,
},
Decide {
question: String,
choice: String,
title: Option<String>,
},
Answer {
question: String,
reply: String,
title: Option<String>,
},
ReplyOther {
question: String,
text: String,
},
ReconcileRetention {
task: String,
authority: String,
apply: Option<String>,
},
Abandon {
run: String,
},
}Expand description
Only these operations cross the standing turn’s inherited capability. No shell commands or calling conversation identities are input.
Variants§
Add
File a new task through the launcher, including from read-only chats.
Done
Mark a task complete using the terminal’s transition.
Priority
Change a task’s queue priority.
Resume
既存 run の再開を queue に登録する。
Hold
task を手動保留する。
Release
task を保留から解放する。
Retry
指示を変更して再試行する。
Fields
RerunChecks
PR の失敗した workflow を再実行する。
Fields
Decide
タスクチャットで所有者の判断を記録する(マージを含む)。
Fields
Answer
magi answer --reply: the owner’s answer to a question, as an ordinary
answer (crate::ask::record_answer).
Fields
ReplyOther
magi answer --reply-other: the owner’s decision outside the offered
choices, saved as a note that ends the consultation
(crate::consult::reply_other).
ReconcileRetention
保存された計画を作成、または適用する。
Abandon
生存が否定された run を破棄する。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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<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> 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