pub struct PendingCall {Show 13 fields
pub task: String,
pub covers: String,
pub tool: String,
pub arguments: Value,
pub reason: String,
pub reference: String,
pub presentation: Option<ApprovalView>,
pub call: String,
pub source: String,
pub kind: String,
pub question: Option<String>,
pub waiting_since: Option<u64>,
pub deadline: Option<u64>,
}Expand description
A call that stopped an attempt for approval, or a question, waiting for a person.
Fields§
§task: StringTask ID.
covers: StringWhat a decision would cover, e.g. write `Cargo.toml` .
tool: StringThe tool.
arguments: ValueIts arguments as the model sent them.
reason: StringWhy it needs approval.
reference: StringThe saved attempt.
presentation: Option<ApprovalView>The call as the inline prompt shows it.
call: StringThe waiting call’s id (approve --call); empty for a stopped attempt.
source: Stringtask (the attempt waits and resumes) or attempt (stopped and saved
in a parallel lane).
kind: Stringapproval or question.
question: Option<String>A question’s text.
waiting_since: Option<u64>Seconds since the epoch the call has waited since.
deadline: Option<u64>Seconds since the epoch it is denied as expired at.
Trait Implementations§
Source§impl Clone for PendingCall
impl Clone for PendingCall
Source§impl Debug for PendingCall
impl Debug for PendingCall
Source§impl Default for PendingCall
impl Default for PendingCall
Source§impl JsonSchema for PendingCall
impl JsonSchema for PendingCall
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PendingCall
impl PartialEq for PendingCall
Source§impl Serialize for PendingCall
impl Serialize for PendingCall
impl StructuralPartialEq for PendingCall
Auto Trait Implementations§
impl Freeze for PendingCall
impl RefUnwindSafe for PendingCall
impl Send for PendingCall
impl Sync for PendingCall
impl Unpin for PendingCall
impl UnsafeUnpin for PendingCall
impl UnwindSafe for PendingCall
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