#[non_exhaustive]pub struct EffectiveApprovalModeState {
pub mode: ApprovalMode,
pub source: ApprovalModeSource,
pub last_command_id: Option<String>,
}Expand description
The effective approval-mode projection: the same object
session/setApprovalMode returns as effectiveMode and the Session
object carries as approvalMode.
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.mode: ApprovalModeThe mode in effect.
source: ApprovalModeSourceHow the mode took effect.
last_command_id: Option<String>The command that last set it; null when no command did.
Trait Implementations§
Source§impl Clone for EffectiveApprovalModeState
impl Clone for EffectiveApprovalModeState
Source§impl Debug for EffectiveApprovalModeState
impl Debug for EffectiveApprovalModeState
Source§impl<'de> Deserialize<'de> for EffectiveApprovalModeState
impl<'de> Deserialize<'de> for EffectiveApprovalModeState
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 EffectiveApprovalModeState
impl StructuralPartialEq for EffectiveApprovalModeState
Auto Trait Implementations§
impl Forget for EffectiveApprovalModeState
impl Freeze for EffectiveApprovalModeState
impl Move for EffectiveApprovalModeState
impl RefUnwindSafe for EffectiveApprovalModeState
impl Send for EffectiveApprovalModeState
impl Sync for EffectiveApprovalModeState
impl Unpin for EffectiveApprovalModeState
impl UnsafeUnpin for EffectiveApprovalModeState
impl UnwindSafe for EffectiveApprovalModeState
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