pub struct EncryptedString(/* private fields */);
Implementations§
Source§impl EncryptedString
impl EncryptedString
Sourcepub fn from_already_encrypted_string(input: String) -> Self
pub fn from_already_encrypted_string(input: String) -> Self
construct EncryptedString from an already encrypted string. useful for wrapping say string from a cookie.
Trait Implementations§
Source§impl<'__expr> AsExpression<Nullable<Text>> for &'__expr EncryptedString
impl<'__expr> AsExpression<Nullable<Text>> for &'__expr EncryptedString
Source§type Expression = Bound<Nullable<Text>, &'__expr EncryptedString>
type Expression = Bound<Nullable<Text>, &'__expr EncryptedString>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
Perform the conversion
Source§impl AsExpression<Nullable<Text>> for EncryptedString
impl AsExpression<Nullable<Text>> for EncryptedString
Source§type Expression = Bound<Nullable<Text>, EncryptedString>
type Expression = Bound<Nullable<Text>, EncryptedString>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
Perform the conversion
Source§impl<'__expr> AsExpression<Text> for &'__expr EncryptedString
impl<'__expr> AsExpression<Text> for &'__expr EncryptedString
Source§type Expression = Bound<Text, &'__expr EncryptedString>
type Expression = Bound<Text, &'__expr EncryptedString>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
Perform the conversion
Source§impl AsExpression<Text> for EncryptedString
impl AsExpression<Text> for EncryptedString
Source§type Expression = Bound<Text, EncryptedString>
type Expression = Bound<Text, EncryptedString>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
Perform the conversion
Source§impl Clone for EncryptedString
impl Clone for EncryptedString
Source§fn clone(&self) -> EncryptedString
fn clone(&self) -> EncryptedString
Returns a copy 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 EncryptedString
impl Debug for EncryptedString
Source§impl Display for EncryptedString
impl Display for EncryptedString
Source§impl From<PlainText> for EncryptedString
impl From<PlainText> for EncryptedString
Auto Trait Implementations§
impl Freeze for EncryptedString
impl RefUnwindSafe for EncryptedString
impl Send for EncryptedString
impl Sync for EncryptedString
impl Unpin for EncryptedString
impl UnwindSafe for EncryptedString
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<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more