#[non_exhaustive]pub struct PendingRequestPointer {
pub kind: PendingRequestKind,
pub approval_id: Option<String>,
pub user_input_id: Option<String>,
pub view_cursor: String,
}Expand description
A late-joiner pointer at an unsettled server-initiated request. The full
payloads arrive as re-issued server-to-client requests right after a
session/resume response; session/read never re-issues them.
A second instance, RULED: the flat discriminated-object precedent is
accepted for this type too, on the ApprovalSubject precedent, with the
serialized JSON unchanged. A strict union node kind may be funded later; if
it is, it must cover both this type and TurnInputPart. the protocol spec
ratifies two kind-discriminated entry shapes ({kind: "approval", approvalId, viewCursor} / {kind: "userInput", userInputId, viewCursor});
this is one flat object with both ids optional, so the published schema
accepts {"kind":"approval","userInputId":…} and an entry carrying no id at
all. The v1 model names no object-variant union (the ApprovalSubject
precedent, followed for TurnInputPart), and this instance differs from
that one in a way the ruling should see: kind here is an OPEN enum, where
TurnInputPart.type is closed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: PendingRequestKindThe discriminator; v1 values approval and userInput.
approval_id: Option<String>Present on an approval entry.
user_input_id: Option<String>Present on a userInput entry.
view_cursor: StringThe cursor the request opened at.