#[non_exhaustive]pub struct SessionLeaveCompletedParams {
pub session_id: String,
pub command_id: String,
pub outcome: SessionLeaveOutcome,
pub reason: Option<SessionLeaveFailureReason>,
pub view_cursor: Option<String>,
}Expand description
Params of the protected, non-view leave terminal notification.
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 session the leave was for.
command_id: StringThe leave command’s id, matching the session/leave request.
outcome: SessionLeaveOutcomeHow the leave ended: released or failed. The set is open, so newer
hosts may add outcomes.
reason: Option<SessionLeaveFailureReason>Why the leave failed. Present when outcome is failed.
view_cursor: Option<String>The session’s view cursor at release: everything up to it was folded
before the host let go. Present when outcome is released.
Trait Implementations§
Source§impl Clone for SessionLeaveCompletedParams
impl Clone for SessionLeaveCompletedParams
Source§impl Debug for SessionLeaveCompletedParams
impl Debug for SessionLeaveCompletedParams
Source§impl<'de> Deserialize<'de> for SessionLeaveCompletedParams
impl<'de> Deserialize<'de> for SessionLeaveCompletedParams
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 SessionLeaveCompletedParams
impl StructuralPartialEq for SessionLeaveCompletedParams
Auto Trait Implementations§
impl Forget for SessionLeaveCompletedParams
impl Freeze for SessionLeaveCompletedParams
impl Move for SessionLeaveCompletedParams
impl RefUnwindSafe for SessionLeaveCompletedParams
impl Send for SessionLeaveCompletedParams
impl Sync for SessionLeaveCompletedParams
impl Unpin for SessionLeaveCompletedParams
impl UnsafeUnpin for SessionLeaveCompletedParams
impl UnwindSafe for SessionLeaveCompletedParams
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