pub struct Tag {
pub tag: String,
pub refs: String,
}
Expand description
Tag model
Fields§
§tag: String
§refs: String
Trait Implementations§
Source§impl<'insert> Insertable<table> for &'insert Tag
impl<'insert> Insertable<table> for &'insert Tag
Source§type Values = <(Option<Grouped<Eq<tag, <&'insert String as AsExpression<<tag as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<refs, <&'insert String as AsExpression<<refs as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<tag, <&'insert String as AsExpression<<tag as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<refs, <&'insert String as AsExpression<<refs as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<tag, &'insert String>>, Option<Eq<refs, &'insert String>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<tag, &'insert String>>, Option<Eq<refs, &'insert String>>) as Insertable<table>>::Values
Construct
Self::Values
Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self
into a given table. Read moreSource§impl Insertable<table> for Tag
impl Insertable<table> for Tag
Source§type Values = <(Option<Grouped<Eq<tag, <String as AsExpression<<tag as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<refs, <String as AsExpression<<refs as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<tag, <String as AsExpression<<tag as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<refs, <String as AsExpression<<refs as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<tag, String>>, Option<Eq<refs, String>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<tag, String>>, Option<Eq<refs, String>>) as Insertable<table>>::Values
Construct
Self::Values
Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self
into a given table. Read moreimpl UndecoratedInsertRecord<table> for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.