pub struct SessionManagedSettingsEnforcedData {
pub action: ManagedSettingsEnforcedAction,
pub escalation: Option<ManagedSettingsEnforcedEscalation>,
pub fail_closed: bool,
pub message: String,
pub setting: String,
}Expand description
Session event “session.managed_settings_enforced”. Runtime enforcement of enterprise managed settings: fires when the session blocks or caps a runtime action because enterprise policy governs it, so SDK clients can explain why an action was governed. Unlike session.managed_settings_resolved (which reports what is managed), this reports a concrete governed action — e.g. a user or host tried to turn on a bypass-permissions escalation while policy disables it. Emitted live (not persisted to the session event log) on user/host-initiated attempts only, never for silent policy application. Marked experimental while the managed-settings surface stabilizes.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§action: ManagedSettingsEnforcedActionThe category of runtime action that managed policy governed.
escalation: Option<ManagedSettingsEnforcedEscalation>For a bypass_permissions_blocked action, which permission-escalation primitive was refused. Absent for actions without a specific escalation primitive.
fail_closed: boolWhether the enforcement was forced by fail-closed handling (managed policy could not be determined) rather than an explicit managed setting. When true, setting still names the restriction that was applied.
message: StringA human-readable explanation of why the action was governed, suitable for surfacing to the user.
setting: StringThe managed setting key responsible for the enforcement (e.g. permissions.disableBypassPermissionsMode).
Trait Implementations§
Source§impl Clone for SessionManagedSettingsEnforcedData
impl Clone for SessionManagedSettingsEnforcedData
Source§fn clone(&self) -> SessionManagedSettingsEnforcedData
fn clone(&self) -> SessionManagedSettingsEnforcedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more