struct NewProvider {
    pub name: String,
    pub website: Option<String>,
    pub help_url: Option<String>,
    pub image_uri: Option<String>,
    pub period: i32,
    pub digits: i32,
    pub default_counter: i32,
    pub algorithm: String,
    pub method: String,
}

Fields§

§name: String§website: Option<String>§help_url: Option<String>§image_uri: Option<String>§period: i32§digits: i32§default_counter: i32§algorithm: String§method: String

Trait Implementations§

source§

impl<'insert> Insertable<table> for &'insert NewProvider

§

type Values = <(Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<website, <&'insert String as AsExpression<<website as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<help_url, <&'insert String as AsExpression<<help_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<image_uri, <&'insert String as AsExpression<<image_uri as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<period, <&'insert i32 as AsExpression<<period as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<digits, <&'insert i32 as AsExpression<<digits as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<default_counter, <&'insert i32 as AsExpression<<default_counter as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<algorithm, <&'insert String as AsExpression<<algorithm as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<method, <&'insert String as AsExpression<<method as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
source§

fn values( self ) -> <(Option<Eq<name, &'insert String>>, Option<Eq<website, &'insert String>>, Option<Eq<help_url, &'insert String>>, Option<Eq<image_uri, &'insert String>>, Option<Eq<period, &'insert i32>>, Option<Eq<digits, &'insert i32>>, Option<Eq<default_counter, &'insert i32>>, Option<Eq<algorithm, &'insert String>>, Option<Eq<method, &'insert String>>) as Insertable<table>>::Values

Construct Self::Values Read more
§

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

Insert self into a given table. Read more
source§

impl Insertable<table> for NewProvider

§

type Values = <(Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<website, <String as AsExpression<<website as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<help_url, <String as AsExpression<<help_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<image_uri, <String as AsExpression<<image_uri as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<period, <i32 as AsExpression<<period as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<digits, <i32 as AsExpression<<digits as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<default_counter, <i32 as AsExpression<<default_counter as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<algorithm, <String as AsExpression<<algorithm as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<method, <String as AsExpression<<method as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
source§

fn values( self ) -> <(Option<Eq<name, String>>, Option<Eq<website, String>>, Option<Eq<help_url, String>>, Option<Eq<image_uri, String>>, Option<Eq<period, i32>>, Option<Eq<digits, i32>>, Option<Eq<default_counter, i32>>, Option<Eq<algorithm, String>>, Option<Eq<method, String>>) as Insertable<table>>::Values

Construct Self::Values Read more
§

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

Insert self into a given table. Read more
source§

impl UndecoratedInsertRecord<table> for NewProvider

Auto Trait Implementations§

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> IntoSql for T

§

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

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>, T: SqlType + TypedExpressionType,

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

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more