pub struct EmailMessage(/* private fields */);Implementations§
Source§impl EmailMessage
impl EmailMessage
pub fn from_address(&self) -> Option<String>
pub fn to_address(&self) -> Option<String>
pub fn raw(&self) -> JsValue
pub fn headers(&self) -> JsValue
pub fn raw_size(&self) -> Option<u64>
pub fn set_reject(&self, reason: &str) -> Result<()>
pub async fn forward<U: DeserializeOwned>( &self, rcpt_to: &str, headers: Option<JsValue>, ) -> Result<U>
pub async fn reply<U: DeserializeOwned>( &self, message: &EmailMessage, ) -> Result<U>
Trait Implementations§
Source§impl AsRef<JsValue> for EmailMessage
impl AsRef<JsValue> for EmailMessage
Source§impl Clone for EmailMessage
impl Clone for EmailMessage
Source§fn clone(&self) -> EmailMessage
fn clone(&self) -> EmailMessage
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 moreSource§impl Debug for EmailMessage
impl Debug for EmailMessage
Source§impl EnvBinding for EmailMessage
impl EnvBinding for EmailMessage
Source§impl From<EmailMessage> for EmailMessage
impl From<EmailMessage> for EmailMessage
Source§fn from(value: EmailMessageSys) -> Self
fn from(value: EmailMessageSys) -> Self
Converts to this type from the input type.
Source§impl From<EmailMessage> for JsValue
impl From<EmailMessage> for JsValue
Source§fn from(value: EmailMessage) -> Self
fn from(value: EmailMessage) -> Self
Converts to this type from the input type.
Source§impl JsCast for EmailMessage
impl JsCast for EmailMessage
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value has a type
T. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified
type. Read more
impl Send for EmailMessage
impl Sync for EmailMessage
Auto Trait Implementations§
impl Freeze for EmailMessage
impl RefUnwindSafe for EmailMessage
impl Unpin for EmailMessage
impl UnsafeUnpin for EmailMessage
impl UnwindSafe for EmailMessage
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