Struct leetcode_cli::cache::models::Tag
source · 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
§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, Insert, NoReturningClause>where
T: Table,
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where T: Table, Self: Sized,
Insert
self
into a given table. Read moresource§impl Insertable<table> for Tag
impl Insertable<table> for Tag
§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, Insert, NoReturningClause>where
T: Table,
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where T: Table, Self: Sized,
Insert
self
into a given table. Read moresource§impl<__DB: Backend, __ST0, __ST1> Queryable<(__ST0, __ST1), __DB> for Tagwhere
(String, String): FromStaticSqlRow<(__ST0, __ST1), __DB>,
impl<__DB: Backend, __ST0, __ST1> Queryable<(__ST0, __ST1), __DB> for Tagwhere (String, String): FromStaticSqlRow<(__ST0, __ST1), __DB>,
impl UndecoratedInsertRecord<table> for Tag
Auto Trait Implementations§
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> 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::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
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>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere ST: SqlTypeOrSelectable + TupleSize, T: Queryable<ST, DB>, DB: Backend,
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.