pub struct SendEmailRequest {
pub to: String,
pub subject: String,
pub text: Option<String>,
pub html: Option<String>,
pub reply_to: Option<String>,
}Expand description
A guest’s request to send an email via the send_email host op.
The from is not part of this request: it is host-owned and injected by
the op from the resolved SenderIdentity, so a guest can never send from
another address. A from field in the guest’s JSON is silently ignored (it
maps to no field here), which is the enforcement — the guest cannot override
the sender.
Fields§
§to: StringThe recipient address.
subject: StringThe message subject.
text: Option<String>The plain-text body, if any. At least one of text/html should be set.
html: Option<String>The HTML body, if any.
reply_to: Option<String>An optional Reply-To address.
Trait Implementations§
Source§impl Clone for SendEmailRequest
impl Clone for SendEmailRequest
Source§fn clone(&self) -> SendEmailRequest
fn clone(&self) -> SendEmailRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SendEmailRequest
impl Debug for SendEmailRequest
Source§impl<'de> Deserialize<'de> for SendEmailRequest
impl<'de> Deserialize<'de> for SendEmailRequest
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 SendEmailRequest
Source§impl PartialEq for SendEmailRequest
impl PartialEq for SendEmailRequest
Source§impl Serialize for SendEmailRequest
impl Serialize for SendEmailRequest
impl StructuralPartialEq for SendEmailRequest
Auto Trait Implementations§
impl Freeze for SendEmailRequest
impl RefUnwindSafe for SendEmailRequest
impl Send for SendEmailRequest
impl Sync for SendEmailRequest
impl Unpin for SendEmailRequest
impl UnsafeUnpin for SendEmailRequest
impl UnwindSafe for SendEmailRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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