[−][src]Struct webdev_lib::tests::questions::models::PartialQuestion
Fields
title: Option<String>
category_id: Option<u64>
correct_answer: Option<String>
incorrect_answer_1: Option<String>
incorrect_answer_2: Option<String>
incorrect_answer_3: Option<String>
Trait Implementations
impl Debug for PartialQuestion
[src]
impl<'update> AsChangeset for &'update PartialQuestion
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Option<Eq<title, &'update String>>, Option<Eq<category_id, &'update u64>>, Option<Eq<correct_answer, &'update String>>, Option<Eq<incorrect_answer_1, &'update String>>, Option<Eq<incorrect_answer_2, &'update String>>, Option<Eq<incorrect_answer_3, &'update String>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'update> AsChangeset for PartialQuestion
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(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 AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl Serialize for PartialQuestion
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for PartialQuestion
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for PartialQuestion
impl Sync for PartialQuestion
impl Send for PartialQuestion
impl UnwindSafe for PartialQuestion
impl RefUnwindSafe for PartialQuestion
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>,