pub enum TrustGate {
ApprovalPrompt,
TrustedProject,
TrustedFolder,
WorkspaceTrust,
ClientEnable(&'static str),
}Expand description
A client’s approval gate for project files.
Variants§
ApprovalPrompt
Servers in the project file need an approval prompt (Claude Code
.mcp.json).
TrustedProject
The project must be marked trusted (Codex, Pi).
TrustedFolder
The folder must be trusted (Gemini, Grok).
WorkspaceTrust
The editor workspace must be trusted (VS Code).
ClientEnable(&'static str)
Each server in the project file stays disabled until the user
enables it once in the client, at this place in its UI (Cursor:
“Customize > MCPs”, gate V2 CUR-2). The toggle lives in the client’s
own storage, so Surjection cannot read it and only reports a hint
(client_enable_required).
Trait Implementations§
impl Copy for TrustGate
impl Eq for TrustGate
impl StructuralPartialEq for TrustGate
Auto Trait Implementations§
impl Forget for TrustGate
impl Freeze for TrustGate
impl Move for TrustGate
impl RefUnwindSafe for TrustGate
impl Send for TrustGate
impl Sync for TrustGate
impl Unpin for TrustGate
impl UnsafeUnpin for TrustGatewhere
&'static str: UnsafeUnpin,
impl UnwindSafe for TrustGatewhere
&'static str: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.