pub(super) struct Act<'a> {
pub(super) state: &'a AppState,
pub(super) req: &'a ActRequest,
pub(super) actor: &'a Actor,
pub(super) regs: &'a [AgentRegistration],
pub(super) text: &'a str,
pub(super) now: i64,
}Expand description
One kanban.act call: who makes it, what it asks and what the board holds.
Fields§
§state: &'a AppState§req: &'a ActRequest§actor: &'a Actor§regs: &'a [AgentRegistration]The agents of this instance.
text: &'a strThe words that came with the move, cleaned.
now: i64Implementations§
Source§impl Act<'_>
impl Act<'_>
pub(super) fn create(&self) -> Result<Value, String>
pub(super) fn edit(&self) -> Result<Value, String>
Sourcefn receiver_sees_board(
&self,
work_id: &str,
agent: &str,
uid: &str,
) -> Result<(), String>
fn receiver_sees_board( &self, work_id: &str, agent: &str, uid: &str, ) -> Result<(), String>
Refuse a task for an agent its board’s agent list leaves out: it would be handed a payload it can’t see on the board.
Sourcefn move_to_board(&self, to: &str) -> Result<Value, String>
fn move_to_board(&self, to: &str) -> Result<Value, String>
Move the task to another board (board): a new task there with the next number, the original
closed with a pointer. An agent sees only the boards its agent list has it on.
pub(super) fn move_task(&self) -> Result<Value, String>
pub(super) async fn start(&self) -> Result<Value, String>
pub(super) async fn answer(&self) -> Result<Value, String>
pub(super) fn reopen(&self) -> Result<Value, String>
pub(super) fn cancel(&self) -> Result<Value, String>
pub(super) fn retry(&self) -> Result<Value, String>
pub(super) async fn track(&self) -> Result<Value, String>
pub(super) async fn take_back(&self) -> Result<TakeBack, String>
pub(super) fn media_remove(&self) -> Result<Value, String>
pub(super) fn ui_change(&self) -> Result<Value, String>
Sourcefn pr_named(&self, card_repo: &str) -> Result<(String, u64), String>
fn pr_named(&self, card_repo: &str) -> Result<(String, u64), String>
The pull request a pr_* move names: pr (an address or owner/repo#12), or repo and number;
a bare number is taken in the card’s own repository.
Sourcepub(super) fn pr_link(&self) -> Result<Value, String>
pub(super) fn pr_link(&self) -> Result<Value, String>
Put a pull request on a task’s card: the operator’s own link, which a later report never undoes.
Sourcepub(super) fn pr_unlink(&self) -> Result<Value, String>
pub(super) fn pr_unlink(&self) -> Result<Value, String>
Take a pull request off a task’s card. It stays recorded, so no later report puts it back.
Sourcepub(super) fn pr_unmatched(&self) -> Result<Value, String>
pub(super) fn pr_unmatched(&self) -> Result<Value, String>
The pull requests no card has, newest first.
Sourcepub(super) fn pr_dismiss(&self) -> Result<Value, String>
pub(super) fn pr_dismiss(&self) -> Result<Value, String>
Take a pull request off the unmatched list without linking it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Act<'a>
impl<'a> !UnwindSafe for Act<'a>
impl<'a> Freeze for Act<'a>
impl<'a> Send for Act<'a>
impl<'a> Sync for Act<'a>
impl<'a> Unpin for Act<'a>
impl<'a> UnsafeUnpin for Act<'a>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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