pub struct StoredMailPayload(pub String);Expand description
Raw JSON payload stored in mail_outbox.payload_json.
Tuple Fields§
§0: StringImplementations§
Source§impl StoredMailPayload
impl StoredMailPayload
Sourcepub const CLEARED_JSON: &str = "{}"
pub const CLEARED_JSON: &str = "{}"
Payload value persisted after terminal delivery, so sensitive template variables do not remain in the outbox row.
Trait Implementations§
Source§impl AsRef<str> for StoredMailPayload
impl AsRef<str> for StoredMailPayload
Source§impl Clone for StoredMailPayload
impl Clone for StoredMailPayload
Source§fn clone(&self) -> StoredMailPayload
fn clone(&self) -> StoredMailPayload
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 StoredMailPayload
impl Debug for StoredMailPayload
Source§impl<'de> Deserialize<'de> for StoredMailPayload
impl<'de> Deserialize<'de> for StoredMailPayload
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 From<StoredMailPayload> for String
impl From<StoredMailPayload> for String
Source§fn from(value: StoredMailPayload) -> Self
fn from(value: StoredMailPayload) -> Self
Converts to this type from the input type.
Source§impl From<StoredMailPayload> for Value
impl From<StoredMailPayload> for Value
Source§fn from(source: StoredMailPayload) -> Self
fn from(source: StoredMailPayload) -> Self
Converts to this type from the input type.
Source§impl From<String> for StoredMailPayload
impl From<String> for StoredMailPayload
Source§impl IntoActiveValue<StoredMailPayload> for StoredMailPayload
impl IntoActiveValue<StoredMailPayload> for StoredMailPayload
Source§fn into_active_value(self) -> ActiveValue<StoredMailPayload>
fn into_active_value(self) -> ActiveValue<StoredMailPayload>
Method to perform the conversion
Source§impl PartialEq for StoredMailPayload
impl PartialEq for StoredMailPayload
Source§fn eq(&self, other: &StoredMailPayload) -> bool
fn eq(&self, other: &StoredMailPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StoredMailPayload
impl Serialize for StoredMailPayload
Source§impl TryGetable for StoredMailPayload
impl TryGetable for StoredMailPayload
Source§fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
Decode the value at the column named or positioned by
index.§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Decode the value at column
{pre}{col} — pre is the prefix used
when nesting partial models or joining tables.§fn try_get_by_index(
res: &QueryResult,
index: usize,
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize, ) -> Result<Self, TryGetError>
Decode the value at the given positional index in the SELECT list.
Source§impl ValueType for StoredMailPayload
impl ValueType for StoredMailPayload
impl Eq for StoredMailPayload
impl NotU8 for StoredMailPayload
impl StructuralPartialEq for StoredMailPayload
Auto Trait Implementations§
impl Freeze for StoredMailPayload
impl RefUnwindSafe for StoredMailPayload
impl Send for StoredMailPayload
impl Sync for StoredMailPayload
impl Unpin for StoredMailPayload
impl UnsafeUnpin for StoredMailPayload
impl UnwindSafe for StoredMailPayload
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> ExprTrait for Twhere
T: Into<Expr>,
impl<T> ExprTrait for Twhere
T: Into<Expr>,
§fn count_distinct(self) -> Expr
fn count_distinct(self) -> Expr
Express a
COUNT function with the DISTINCT modifier. Read more§fn add<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn add<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic addition operation. Read more
§fn div<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn div<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic division operation. Read more
§fn equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
fn equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
Express a equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
§fn gt<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn gt<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a greater than (
>) expression. Read more§fn gte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn gte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a greater than or equal (
>=) expression. Read more§fn in_subquery(self, sel: SelectStatement) -> Expr
fn in_subquery(self, sel: SelectStatement) -> Expr
Express a
IN sub-query expression. Read more§fn in_tuples<V, I>(self, v: I) -> Exprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
fn in_tuples<V, I>(self, v: I) -> Exprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
Express a
IN sub expression. Read more§fn is_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
fn is_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
Express a
IN expression. Read more§fn is_not_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
fn is_not_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
Express a
NOT IN expression. Read more§fn is_not_null(self) -> Expr
fn is_not_null(self) -> Expr
Express a
IS NOT NULL expression. Read more§fn left_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn left_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a bitwise left shift. Read more
§fn lte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn lte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a less than or equal (
<=) expression. Read more§fn modulo<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn modulo<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic modulo operation. Read more
§fn mul<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn mul<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic multiplication operation. Read more
§fn not_between<A, B>(self, a: A, b: B) -> Expr
fn not_between<A, B>(self, a: A, b: B) -> Expr
Express a
NOT BETWEEN expression. Read more§fn not_equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
fn not_equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
Express a not equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
§fn not_in_subquery(self, sel: SelectStatement) -> Expr
fn not_in_subquery(self, sel: SelectStatement) -> Expr
Express a
NOT IN sub-query expression. Read more§fn not_like<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
fn not_like<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
Express a
NOT LIKE expression. Read more§fn right_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn right_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a bitwise right shift. Read more
§fn sub<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn sub<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic subtraction operation. Read more
§impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
fn from_value_tuple<I>(i: I) -> Vwhere
I: IntoValueTuple,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoLikeExpr for Twhere
T: Into<LikeExpr>,
impl<T> IntoLikeExpr for Twhere
T: Into<LikeExpr>,
fn into_like_expr(self) -> LikeExpr
§impl<T> IntoValueTuple for Twhere
T: Into<ValueTuple>,
impl<T> IntoValueTuple for Twhere
T: Into<ValueTuple>,
fn into_value_tuple(self) -> ValueTuple
§impl<T> PgExpr for Twhere
T: ExprTrait,
impl<T> PgExpr for Twhere
T: ExprTrait,
§fn concatenate<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn concatenate<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an postgres concatenate (
||) expression. Read more§fn matches<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
fn matches<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
Express an postgres fulltext search matches (
@@) expression. Read more§fn contains<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
fn contains<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
Express an postgres fulltext search contains (
@>) expression. Read more§fn contained<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
fn contained<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
Express an postgres fulltext search contained (
<@) expression. Read more§fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express a postgres retrieves JSON field as JSON value (
->). Read more§fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express a postgres retrieves JSON field and casts it to an appropriate SQL type (
->>). Read more§fn eq_any<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
fn eq_any<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
Equivalent to
is_in but bind parameters as array. Read more§fn ne_all<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
fn ne_all<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
Equivalent to
is_not_in but bind parameters as array. Read more§impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
§impl<T> SqliteExpr for Twhere
T: ExprTrait,
impl<T> SqliteExpr for Twhere
T: ExprTrait,
§fn matches<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn matches<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an sqlite
MATCH operator. Read more§fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an sqlite retrieves JSON field as JSON value (
->). Read more§fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an sqlite retrieves JSON field and casts it to an appropriate SQL type (
->>). Read more§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String],
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String], ) -> Result<T, TryGetError>
Decode by column name.
pre is the prefix used when nesting (e.g.
from a joined table); cols names each tuple position.§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Decode positionally, in the order columns appear in the SELECT list.