pub struct WorkspaceLifecycleHooks {
pub commands: Vec<WorkspaceHookCommand>,
}Expand description
Snapshot of all lifecycle hook commands sourced from workspace-controlled configuration layers, captured at configuration load time.
The presence of any workspace-controlled hook command marks the session’s lifecycle engine as gated: no lifecycle hook runs until the user explicitly approves the exact command set the engine will execute, bound to a digest of that set. Any change to the commands invalidates a previously granted approval, so a repository update cannot silently swap in a new command under an old approval.
Fields§
§commands: Vec<WorkspaceHookCommand>Workspace-controlled lifecycle hook commands in canonical event order.
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceLifecycleHooks
impl Clone for WorkspaceLifecycleHooks
Source§impl Debug for WorkspaceLifecycleHooks
impl Debug for WorkspaceLifecycleHooks
Source§impl Default for WorkspaceLifecycleHooks
impl Default for WorkspaceLifecycleHooks
Source§impl<'de> Deserialize<'de> for WorkspaceLifecycleHooks
impl<'de> Deserialize<'de> for WorkspaceLifecycleHooks
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
impl Eq for WorkspaceLifecycleHooks
Source§impl JsonSchema for WorkspaceLifecycleHooks
impl JsonSchema for WorkspaceLifecycleHooks
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WorkspaceLifecycleHooks
impl PartialEq for WorkspaceLifecycleHooks
Source§impl Serialize for WorkspaceLifecycleHooks
impl Serialize for WorkspaceLifecycleHooks
impl StructuralPartialEq for WorkspaceLifecycleHooks
Auto Trait Implementations§
impl Freeze for WorkspaceLifecycleHooks
impl RefUnwindSafe for WorkspaceLifecycleHooks
impl Send for WorkspaceLifecycleHooks
impl Sync for WorkspaceLifecycleHooks
impl Unpin for WorkspaceLifecycleHooks
impl UnsafeUnpin for WorkspaceLifecycleHooks
impl UnwindSafe for WorkspaceLifecycleHooks
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.