pub struct PeerTask {
pub team: String,
pub peer: String,
pub id: String,
pub state: PeerTaskState,
pub text: Option<String>,
pub prompt: Option<PeerPrompt>,
pub tokens: Option<u64>,
}Expand description
A task as the caller sees it.
Fields§
§team: StringThe team.
peer: StringThe member doing it.
id: StringThe task id (the other bot’s).
state: PeerTaskStateWhere it stands.
text: Option<String>The answer, the reason for a failure, or the question while input is required.
prompt: Option<PeerPrompt>While input is required: the question’s buttons, to show the origin person.
tokens: Option<u64>Tokens the task used (its turn and its own delegations), once it ended.
Trait Implementations§
impl Eq for PeerTask
impl StructuralPartialEq for PeerTask
Auto Trait Implementations§
impl Freeze for PeerTask
impl RefUnwindSafe for PeerTask
impl Send for PeerTask
impl Sync for PeerTask
impl Unpin for PeerTask
impl UnsafeUnpin for PeerTask
impl UnwindSafe for PeerTask
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