Struct NewSpell

Source
pub struct NewSpell<'a> {
    pub name: &'a str,
    pub cast_duration: &'a str,
    pub options: &'a Vec<String>,
    pub range: &'a str,
    pub difficulty: &'a str,
    pub typus: &'a str,
    pub enforced: &'a str,
    pub effect: &'a str,
    pub duration_of_effect: &'a str,
    pub cost: &'a str,
    pub schools_id: &'a i32,
}

Fields§

§name: &'a str§cast_duration: &'a str§options: &'a Vec<String>§range: &'a str§difficulty: &'a str§typus: &'a str§enforced: &'a str§effect: &'a str§duration_of_effect: &'a str§cost: &'a str§schools_id: &'a i32

Trait Implementations§

Source§

impl<'a> Debug for NewSpell<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'insert> Insertable<table> for &'insert NewSpell<'a>

Source§

type Values = <(Option<Eq<name, <&'insert &'a str as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<cast_duration, <&'insert &'a str as AsExpression<<cast_duration as Expression>::SqlType>>::Expression>>, Option<Eq<options, <&'insert &'a Vec<String> as AsExpression<<options as Expression>::SqlType>>::Expression>>, Option<Eq<range, <&'insert &'a str as AsExpression<<range as Expression>::SqlType>>::Expression>>, Option<Eq<difficulty, <&'insert &'a str as AsExpression<<difficulty as Expression>::SqlType>>::Expression>>, Option<Eq<typus, <&'insert &'a str as AsExpression<<typus as Expression>::SqlType>>::Expression>>, Option<Eq<enforced, <&'insert &'a str as AsExpression<<enforced as Expression>::SqlType>>::Expression>>, Option<Eq<effect, <&'insert &'a str as AsExpression<<effect as Expression>::SqlType>>::Expression>>, Option<Eq<duration_of_effect, <&'insert &'a str as AsExpression<<duration_of_effect as Expression>::SqlType>>::Expression>>, Option<Eq<cost, <&'insert &'a str as AsExpression<<cost as Expression>::SqlType>>::Expression>>, Option<Eq<schools_id, <&'insert &'a i32 as AsExpression<<schools_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl<'a, 'insert> Insertable<table> for NewSpell<'a>

Source§

impl<'a, 'insert> UndecoratedInsertRecord<table> for NewSpell<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for NewSpell<'a>

§

impl<'a> RefUnwindSafe for NewSpell<'a>

§

impl<'a> Send for NewSpell<'a>

§

impl<'a> Sync for NewSpell<'a>

§

impl<'a> Unpin for NewSpell<'a>

§

impl<'a> UnwindSafe for NewSpell<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression
where Self: Sized + AsExpression<T>,

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.