Skip to main content

PendingCall

Struct PendingCall 

Source
pub struct PendingCall {
Show 18 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>, pub object: Option<ObjectView>, pub sources: Vec<String>, pub run: Option<String>, pub batched: bool, pub digest: String,
}
Expand description

A call that stopped an attempt for approval, or a question, waiting for a person.

Fields§

§task: String

Task ID.

§covers: String

What a decision would cover, e.g. write `Cargo.toml` .

§tool: String

The tool.

§arguments: Value

Its arguments as the model sent them.

§reason: String

Why it needs approval.

§reference: String

The saved attempt.

§presentation: Option<ApprovalView>

The call as the inline prompt shows it.

§call: String

The waiting call’s id (approve --call); empty for a stopped attempt.

§source: String

task (the attempt waits and resumes) or attempt (stopped and saved in a parallel lane).

§kind: String

approval 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.

§object: Option<ObjectView>

The object a decision covers.

§sources: Vec<String>

Where arguments of the call were copied from (source lines).

§run: Option<String>

The run it belongs to.

§batched: bool

It waits in its run’s batch: the asking budget was used.

§digest: String

SHA-256 over its id and the object a decision covers: a decision names it and is refused when another call (or another object) waits now.

Implementations§

Source§

impl PendingCall

Source

pub fn id(&self) -> String

Its id in decisions and batches: the waiting call’s, or attempt:<task> for a call a parallel lane stopped.

Trait Implementations§

Source§

impl Clone for PendingCall

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PendingCall

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PendingCall

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl JsonSchema for PendingCall

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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 more
Source§

impl PartialEq for PendingCall

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for PendingCall

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PendingCall

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.