#[non_exhaustive]pub enum NeedsInputReason {
ApprovalPending,
InputPending,
Unknown(String),
}Expand description
One needsInputReasons reason: why a loaded session’s input is needed. Open
on the wire — clients MUST ignore unknown values; future reasons are
additive. The reasons are a pure projection of the pending-request fold’s
answer in PR 1 (the same read that derives attention); admissionPending
is deliberately not a reason.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ApprovalPending
At least one approval request is open and unresolved.
InputPending
At least one user-input request is open.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for NeedsInputReason
impl Clone for NeedsInputReason
Source§impl Debug for NeedsInputReason
impl Debug for NeedsInputReason
Source§impl<'de> Deserialize<'de> for NeedsInputReason
impl<'de> Deserialize<'de> for NeedsInputReason
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 NeedsInputReason
Source§impl PartialEq for NeedsInputReason
impl PartialEq for NeedsInputReason
Source§impl Serialize for NeedsInputReason
impl Serialize for NeedsInputReason
impl StructuralPartialEq for NeedsInputReason
Auto Trait Implementations§
impl Forget for NeedsInputReason
impl Freeze for NeedsInputReason
impl Move for NeedsInputReason
impl RefUnwindSafe for NeedsInputReason
impl Send for NeedsInputReason
impl Sync for NeedsInputReason
impl Unpin for NeedsInputReason
impl UnsafeUnpin for NeedsInputReason
impl UnwindSafe for NeedsInputReason
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