pub struct Message { /* fields omitted */ }
Message is the wrapper around the entire payload to be sent to SendGrid's API.
Use MessageBuilder to properly construct this. The to_json
method is available to turn this struct into the request body to send to SendGrid
to_json
serializes the entire message into JSON. The result of this method call
should contain the entire body for the HTTP POST to SendGrid. This method will
panic if it is unable to serialize, because it is likely a bug in this crate that
is causing it.
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static