pub enum BridgeRequest {
Show 13 variants
ExplanationGet {
request_id: String,
token: String,
scope: ExplanationScope,
offset: usize,
},
ExplanationEvidence {
request_id: String,
token: String,
reference: EvidenceRef,
offset: usize,
},
ExplanationNavigate {
request_id: String,
token: String,
reference: EvidenceRef,
},
Pair {
request_id: String,
code: String,
resume_token: Option<String>,
origin: Option<String>,
after_sequence: Option<u64>,
},
Status {
request_id: String,
token: String,
},
ListFiles {
request_id: String,
token: String,
},
ReadFile {
request_id: String,
token: String,
path: String,
},
ProposeChanges {
request_id: String,
token: String,
changes: Vec<FileChange>,
},
ApplyProposal {
request_id: String,
token: String,
proposal_id: String,
},
RunChecks {
request_id: String,
token: String,
command: String,
},
RevertLastChange {
request_id: String,
token: String,
change_id: String,
},
RequestTurn {
request_id: String,
token: String,
proposal_id: Option<String>,
prompt: String,
},
Cancel {
request_id: String,
token: String,
target_id: String,
},
}Expand description
Browser requests accepted by the WebMCP server.
Variants§
ExplanationGet
Query canonical retained execution facts after authentication.
Fields
§
scope: ExplanationScopeLatest task or retained session.
ExplanationEvidence
Resolve one content-addressed, paged canonical source.
Fields
§
reference: EvidenceRefContent-addressed canonical source.
Focus evidence in the terminal review surface without runtime execution.
Pair
Consume the one-time pairing code.
Fields
Status
Return bridge and runtime status.
Fields
ListFiles
List bounded workspace files.
Fields
ReadFile
Read a workspace file and its digest.
Fields
ProposeChanges
Validate and stage structured file changes.
Fields
§
changes: Vec<FileChange>Proposed file changes.
ApplyProposal
Ask the terminal runtime to approve and apply a staged proposal.
Fields
RunChecks
Run a safe, runtime-approved check command.
Fields
RevertLastChange
Revert the most recent applied bridge change.
Fields
RequestTurn
Send a prompt to the active VT Code runtime.
Fields
Cancel
Cancel an active request or turn.
Implementations§
Source§impl BridgeRequest
impl BridgeRequest
Trait Implementations§
Source§impl Clone for BridgeRequest
impl Clone for BridgeRequest
Source§impl Debug for BridgeRequest
impl Debug for BridgeRequest
Source§impl<'de> Deserialize<'de> for BridgeRequest
impl<'de> Deserialize<'de> for BridgeRequest
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
Auto Trait Implementations§
impl Freeze for BridgeRequest
impl RefUnwindSafe for BridgeRequest
impl Send for BridgeRequest
impl Sync for BridgeRequest
impl Unpin for BridgeRequest
impl UnsafeUnpin for BridgeRequest
impl UnwindSafe for BridgeRequest
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