pub struct PermissionDecisionContext {
pub outcome: PermissionDecisionOutcome,
pub response_capability: Option<PermissionResponseCapability>,
pub source: PermissionDecisionSource,
pub surface: PermissionDecisionSurface,
}Expand description
Re-exports of generated protocol types that are part of the SDK’s
public API surface. The canonical definitions live in
crate::rpc; they live here so the crate-root
pub use types::* surfaces them alongside hand-written SDK types.
Optional informational context describing how and where the permission decision was made. This does not affect permission behavior.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§outcome: PermissionDecisionOutcomeDisposition of the permission request as observed by the responding client.
response_capability: Option<PermissionResponseCapability>Whether the responding client could ask a user interactively, was running headlessly, or had no response path. Omit when the client cannot determine this authoritatively.
source: PermissionDecisionSourceControlled reason or actor responsible for the response.
surface: PermissionDecisionSurfaceClient surface that submitted the response.
Trait Implementations§
Source§impl Clone for PermissionDecisionContext
impl Clone for PermissionDecisionContext
Source§fn clone(&self) -> PermissionDecisionContext
fn clone(&self) -> PermissionDecisionContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more