Struct SqlInterfaceConfig

Source
pub struct SqlInterfaceConfig {
Show 17 fields pub db_user: String, pub db_password: String, pub db_host: String, pub db_port: u16, pub db_name: String, pub db_tables: Vec<String>, pub db_min_wait_timeout: u64, pub db_ping_interval: u64, pub max_rows_balling_set_values: u64, pub max_rows_feed_pattern: u64, pub max_rows_feed_schedule: u64, pub max_rows_heating_stats: u64, pub max_rows_schedule: u64, pub max_rows_data: u64, pub max_rows_refill: u64, pub max_rows_balling_dosing_log: u64, pub max_rows_feed_log: u64,
}
Expand description

This struct holds the configuration data for the SQL interface. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.

Fields§

§db_user: String

database user

§db_password: String

database password

§db_host: String

hostname of the database

§db_port: u16

port name of the database

§db_name: String

database name

§db_tables: Vec<String>

array of required tables

§db_min_wait_timeout: u64

minimum wait timout - application checks server variable before execution

§db_ping_interval: u64

the database-ping interval in seconds

§max_rows_balling_set_values: u64

maximum allowed rows for balling set value table

§max_rows_feed_pattern: u64

maximum allowed rows for feed pattern table

§max_rows_feed_schedule: u64

maximum allowed rows for feed schedule table

§max_rows_heating_stats: u64

maximum allowed rows for heating stats table

§max_rows_schedule: u64

maximum allowed rows for schedule table

§max_rows_data: u64

maximum allowed rows for data table

§max_rows_refill: u64

maximum allowed rows for refill log

§max_rows_balling_dosing_log: u64

maximum allowed rows for Balling dosing log

§max_rows_feed_log: u64

maximum allowed rows for Feed log

Trait Implementations§

Source§

impl Clone for SqlInterfaceConfig

Source§

fn clone(&self) -> SqlInterfaceConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for SqlInterfaceConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T