#[non_exhaustive]pub enum InboundMode {
Accept,
Hold,
Refuse,
Other(String),
}Expand description
crossSessionInbound.
Docs: crossSessionInbound.
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.
Accept
Claude Code delivers the message to Claude.
Hold
Claude Code shows a notice for the message without delivering it.
Refuse
Claude Code drops the message.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for InboundMode
impl AsRef<str> for InboundMode
Source§impl Clone for InboundMode
impl Clone for InboundMode
Source§impl Debug for InboundMode
impl Debug for InboundMode
Source§impl<'de> Deserialize<'de> for InboundMode
impl<'de> Deserialize<'de> for InboundMode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InboundMode
impl Display for InboundMode
impl Eq for InboundMode
Source§impl From<&str> for InboundMode
impl From<&str> for InboundMode
Source§impl From<String> for InboundMode
impl From<String> for InboundMode
Source§impl Hash for InboundMode
impl Hash for InboundMode
Source§impl Ord for InboundMode
impl Ord for InboundMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InboundMode
impl PartialEq for InboundMode
Source§impl PartialOrd for InboundMode
impl PartialOrd for InboundMode
Source§impl Serialize for InboundMode
impl Serialize for InboundMode
impl StructuralPartialEq for InboundMode
Auto Trait Implementations§
impl Forget for InboundMode
impl Freeze for InboundMode
impl Move for InboundMode
impl RefUnwindSafe for InboundMode
impl Send for InboundMode
impl Sync for InboundMode
impl Unpin for InboundMode
impl UnsafeUnpin for InboundMode
impl UnwindSafe for InboundMode
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