Enum WhatsAppWebMode
pub enum WhatsAppWebMode {
Business,
Personal,
}Expand description
WhatsApp Web usage mode.
The mode no longer decides WHETHER the chat policies apply. dm_policy and
group_policy are consulted under BOTH modes, and an unrecognized sender is
dropped before the message is logged or dispatched either way.
Personal additionally applies the self-chat exception, so self_chat_mode
is consulted only there.
Business (default) is the same admission path without that exception.
Neither mode consults allowed_numbers. That is a V2 field which migrates
into peer_groups on load, so it names no knob the current model exposes;
senders resolve from [peer_groups.<name>].external_peers scoped to the
alias.
Variants§
Business
Respond to messages passing dm_policy and group_policy (default).
Personal
As business mode, and additionally applies the self-chat semantics
(self_chat_mode and the fromMe handling). Both modes run the same
linked-device session, and WhatsApp can mirror an operator’s own
messages as fromMe under either, so that scoping is a property of
this branch rather than of the account.
Trait Implementations§
Source§impl Clone for WhatsAppWebMode
impl Clone for WhatsAppWebMode
Source§fn clone(&self) -> WhatsAppWebMode
fn clone(&self) -> WhatsAppWebMode
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WhatsAppWebMode
impl Debug for WhatsAppWebMode
Source§impl Default for WhatsAppWebMode
impl Default for WhatsAppWebMode
Source§fn default() -> WhatsAppWebMode
fn default() -> WhatsAppWebMode
Source§impl<'de> Deserialize<'de> for WhatsAppWebMode
impl<'de> Deserialize<'de> for WhatsAppWebMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WhatsAppWebMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WhatsAppWebMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl HasPropKind for WhatsAppWebMode
impl HasPropKind for WhatsAppWebMode
const PROP_KIND: PropKind = crate::config::PropKind::Enum
const ALIAS_SOURCE: Option<AliasSource> = None
Source§fn display_secret_terminals() -> Vec<&'static str>
fn display_secret_terminals() -> Vec<&'static str>
secret_field_terminals.Source§impl JsonSchema for WhatsAppWebMode
impl JsonSchema for WhatsAppWebMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for WhatsAppWebMode
impl PartialEq for WhatsAppWebMode
Source§impl Serialize for WhatsAppWebMode
impl Serialize for WhatsAppWebMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for WhatsAppWebMode
Auto Trait Implementations§
impl Freeze for WhatsAppWebMode
impl RefUnwindSafe for WhatsAppWebMode
impl Send for WhatsAppWebMode
impl Sync for WhatsAppWebMode
impl Unpin for WhatsAppWebMode
impl UnsafeUnpin for WhatsAppWebMode
impl UnwindSafe for WhatsAppWebMode
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more