pub struct ApprovalRow {
pub id: String,
pub harness: HarnessId,
pub kind: ApprovalKind,
pub status: ApprovalStatus,
pub subject: String,
pub session_id: Option<String>,
pub runtime_id: Option<String>,
pub requested_at_ms: i64,
pub age_ms: i64,
pub options: Vec<ApprovalOption>,
}Expand description
One approval request, in the vocabulary shared by every harness.
Fields§
§id: StringStable, addressable identity. Live rows are
<connection>/<native request id>; supercode’s queued subagent rows
are supercode/subagent/<child>/<queued_at_ms>/<index>.
harness: HarnessIdHarness whose door raised the request.
kind: ApprovalKindWhich source this row came from.
status: ApprovalStatusLifecycle state.
subject: StringThe tool, command, or edit being asked about, on one line.
session_id: Option<String>Harness-native session the request belongs to, when it names one.
runtime_id: Option<String>Live runtime the request arrived on, when there is one.
requested_at_ms: i64Unix-ms wall-clock time the request was first seen.
age_ms: i64How long it has been waiting, as of this listing.
options: Vec<ApprovalOption>Answers the door accepts. Empty where the protocol does not enumerate
them, and always empty on a row that is no longer pending.
Trait Implementations§
Source§impl Clone for ApprovalRow
impl Clone for ApprovalRow
Source§fn clone(&self) -> ApprovalRow
fn clone(&self) -> ApprovalRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApprovalRow
impl Debug for ApprovalRow
Source§impl<'de> Deserialize<'de> for ApprovalRow
impl<'de> Deserialize<'de> for ApprovalRow
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
impl Eq for ApprovalRow
Source§impl PartialEq for ApprovalRow
impl PartialEq for ApprovalRow
Source§impl Serialize for ApprovalRow
impl Serialize for ApprovalRow
impl StructuralPartialEq for ApprovalRow
Auto Trait Implementations§
impl Freeze for ApprovalRow
impl RefUnwindSafe for ApprovalRow
impl Send for ApprovalRow
impl Sync for ApprovalRow
impl Unpin for ApprovalRow
impl UnsafeUnpin for ApprovalRow
impl UnwindSafe for ApprovalRow
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.