[−][src]Struct webdev_lib::tests::questions::models::NewRawQuestion
Fields
title: String
category_id: u64
correct_answer: String
incorrect_answer_1: String
incorrect_answer_2: String
incorrect_answer_3: String
Trait Implementations
impl Debug for NewRawQuestion
[src]
impl<'insert> Insertable<table> for NewRawQuestion
[src]
type Values = <(Option<Eq<title, String>>, Option<Eq<category_id, u64>>, Option<Eq<correct_answer, String>>, Option<Eq<incorrect_answer_1, String>>, Option<Eq<incorrect_answer_2, String>>, Option<Eq<incorrect_answer_3, String>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert self
into a given table. Read more
impl<'insert> Insertable<table> for &'insert NewRawQuestion
[src]
type Values = <(Option<Eq<title, &'insert String>>, Option<Eq<category_id, &'insert u64>>, Option<Eq<correct_answer, &'insert String>>, Option<Eq<incorrect_answer_1, &'insert String>>, Option<Eq<incorrect_answer_2, &'insert String>>, Option<Eq<incorrect_answer_3, &'insert String>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert self
into a given table. Read more
impl<'insert> UndecoratedInsertRecord<table> for NewRawQuestion
[src]
impl Serialize for NewRawQuestion
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for NewRawQuestion
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for NewRawQuestion
impl Sync for NewRawQuestion
impl Send for NewRawQuestion
impl UnwindSafe for NewRawQuestion
impl RefUnwindSafe for NewRawQuestion
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
Convert self
to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel's query builder. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Typeable for T where
T: Any,
[src]
T: Any,
impl<T> Erased for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,