pub struct WhatsAppMessage {
pub message: Message,
}Expand description
A WhatsApp message wrapping the typed shape from ferro-whatsapp.
Construct via WhatsAppMessage::text or WhatsAppMessage::template.
The dispatcher passes self.message to ferro_whatsapp::WhatsApp::send
(per CONTEXT.md D-04 — static facade, not an injected client).
Fields§
§message: MessageThe underlying WhatsApp Cloud API message variant.
Implementations§
Source§impl WhatsAppMessage
impl WhatsAppMessage
Sourcepub fn text(body: impl Into<String>) -> WhatsAppMessage
pub fn text(body: impl Into<String>) -> WhatsAppMessage
Build a plain-text WhatsApp message.
Trait Implementations§
Source§impl Clone for WhatsAppMessage
impl Clone for WhatsAppMessage
Source§fn clone(&self) -> WhatsAppMessage
fn clone(&self) -> WhatsAppMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WhatsAppMessage
impl RefUnwindSafe for WhatsAppMessage
impl Send for WhatsAppMessage
impl Sync for WhatsAppMessage
impl Unpin for WhatsAppMessage
impl UnsafeUnpin for WhatsAppMessage
impl UnwindSafe for WhatsAppMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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