pub struct Setting {
pub namespace: String,
pub category: String,
pub name: String,
pub value: Vec<u8>,
}
Fields§
§namespace: String
§category: String
§name: String
§value: Vec<u8>
Trait Implementations§
Source§impl<'update> AsChangeset for &'update Setting
impl<'update> AsChangeset for &'update Setting
Source§type Changeset = <(Eq<value, <&'update Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>,) as AsChangeset>::Changeset
type Changeset = <(Eq<value, <&'update Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>,) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedSource§impl<'update> AsChangeset for Setting
impl<'update> AsChangeset for Setting
Source§type Changeset = <(Eq<value, <Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>,) as AsChangeset>::Changeset
type Changeset = <(Eq<value, <Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>,) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedSource§impl<'ident> Identifiable for &'ident Setting
impl<'ident> Identifiable for &'ident Setting
Source§impl<'insert> Insertable<table> for &'insert Setting
impl<'insert> Insertable<table> for &'insert Setting
Source§type Values = <(Option<Eq<namespace, <&'insert String as AsExpression<<namespace as Expression>::SqlType>>::Expression>>, Option<Eq<category, <&'insert String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<value, <&'insert Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<namespace, <&'insert String as AsExpression<<namespace as Expression>::SqlType>>::Expression>>, Option<Eq<category, <&'insert String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<value, <&'insert Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read moreSource§impl<'insert> Insertable<table> for Setting
impl<'insert> Insertable<table> for Setting
Source§type Values = <(Option<Eq<namespace, <String as AsExpression<<namespace as Expression>::SqlType>>::Expression>>, Option<Eq<category, <String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<value, <Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<namespace, <String as AsExpression<<namespace as Expression>::SqlType>>::Expression>>, Option<Eq<category, <String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<value, <Vec<u8> as AsExpression<<value as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read moreimpl<'insert> UndecoratedInsertRecord<table> for Setting
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnwindSafe for Setting
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> 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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more