pub struct SendEmail<'a> {
pub comment: Option<CowStr<'a>>,
pub content: CowStr<'a>,
pub recipient_did: Did<'a>,
pub sender_did: Did<'a>,
pub subject: Option<CowStr<'a>>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
§comment: Option<CowStr<'a>>Additional comment by the sender that won’t be used in the email itself but helpful to provide more context for moderators/reviewers
content: CowStr<'a>§recipient_did: Did<'a>§sender_did: Did<'a>§subject: Option<CowStr<'a>>§extra_data: BTreeMap<SmolStr, Data<'a>>Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for SendEmail<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SendEmail<'a>
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
Source§impl IntoStatic for SendEmail<'_>
impl IntoStatic for SendEmail<'_>
Source§impl XrpcRequest for SendEmail<'_>
impl XrpcRequest for SendEmail<'_>
Source§const METHOD: XrpcMethod
const METHOD: XrpcMethod
XRPC method (query/GET or procedure/POST)
Source§const OUTPUT_ENCODING: &'static str = "application/json"
const OUTPUT_ENCODING: &'static str = "application/json"
Output encoding (MIME type)
Source§type Output<'de> = SendEmailOutput<'de>
type Output<'de> = SendEmailOutput<'de>
Response output type
Source§type Err<'de> = GenericError<'de>
type Err<'de> = GenericError<'de>
Error type for this request
Source§fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
Encode the request body for procedures. Read more
impl<'a> Eq for SendEmail<'a>
impl<'a> StructuralPartialEq for SendEmail<'a>
Auto Trait Implementations§
impl<'a> Freeze for SendEmail<'a>
impl<'a> RefUnwindSafe for SendEmail<'a>
impl<'a> Send for SendEmail<'a>
impl<'a> Sync for SendEmail<'a>
impl<'a> Unpin for SendEmail<'a>
impl<'a> UnwindSafe for SendEmail<'a>
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<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.