#[non_exhaustive]pub struct SessionApprovalModeChangedParams {
pub session_id: String,
pub view_cursor: String,
pub source_range: SourceRange,
pub mode: ApprovalMode,
pub source: ApprovalModeSource,
pub command_id: String,
pub client_name: String,
pub client_version: Option<String>,
}Expand description
session/approvalModeChanged params: the fold of the durable approval-mode
reconfigure audit fact — every accepted change writes one; a mode flip
without an audit fact is a runtime bug by design.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe owning session.
view_cursor: StringOpaque, strictly monotonic view cursor.
source_range: SourceRangeThe durable records this event folded from.
mode: ApprovalModeThe mode now in effect.
source: ApprovalModeSourceHow the mode took effect.
command_id: StringThe command that changed it.
client_name: StringThe requesting client’s clientInfo.name, recorded on the audit fact.
client_version: Option<String>The requesting client’s clientInfo.version, beside clientName:
absent when unrecorded and on older logs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionApprovalModeChangedParams
impl<'de> Deserialize<'de> for SessionApprovalModeChangedParams
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 SessionApprovalModeChangedParams
impl StructuralPartialEq for SessionApprovalModeChangedParams
Auto Trait Implementations§
impl Forget for SessionApprovalModeChangedParams
impl Freeze for SessionApprovalModeChangedParams
impl Move for SessionApprovalModeChangedParams
impl RefUnwindSafe for SessionApprovalModeChangedParams
impl Send for SessionApprovalModeChangedParams
impl Sync for SessionApprovalModeChangedParams
impl Unpin for SessionApprovalModeChangedParams
impl UnsafeUnpin for SessionApprovalModeChangedParams
impl UnwindSafe for SessionApprovalModeChangedParams
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