pub struct ConfigSql {
pub driver_name: Option<String>,
pub data_source: Option<String>,
pub max_idle_conns: Option<i32>,
pub conn_max_lifetime_milliseconds: Option<i32>,
pub conn_max_idle_time_milliseconds: Option<i32>,
pub max_open_conns: Option<i32>,
pub trace: Option<bool>,
pub at_rest_encrypt_key: Option<String>,
pub query_timeout: Option<i32>,
pub disable_database_search: Option<bool>,
}Fields§
§driver_name: Option<String>§data_source: Option<String>§max_idle_conns: Option<i32>§conn_max_lifetime_milliseconds: Option<i32>§conn_max_idle_time_milliseconds: Option<i32>§max_open_conns: Option<i32>§trace: Option<bool>§at_rest_encrypt_key: Option<String>§query_timeout: Option<i32>§disable_database_search: Option<bool>Implementations§
Source§impl ConfigSql
impl ConfigSql
Sourcepub fn driver_name(&self) -> &str
pub fn driver_name(&self) -> &str
Returns the value of driver_name, or the default value if driver_name is unset.
Sourcepub fn data_source(&self) -> &str
pub fn data_source(&self) -> &str
Returns the value of data_source, or the default value if data_source is unset.
Sourcepub fn max_idle_conns(&self) -> i32
pub fn max_idle_conns(&self) -> i32
Returns the value of max_idle_conns, or the default value if max_idle_conns is unset.
Sourcepub fn conn_max_lifetime_milliseconds(&self) -> i32
pub fn conn_max_lifetime_milliseconds(&self) -> i32
Returns the value of conn_max_lifetime_milliseconds, or the default value if conn_max_lifetime_milliseconds is unset.
Sourcepub fn conn_max_idle_time_milliseconds(&self) -> i32
pub fn conn_max_idle_time_milliseconds(&self) -> i32
Returns the value of conn_max_idle_time_milliseconds, or the default value if conn_max_idle_time_milliseconds is unset.
Sourcepub fn max_open_conns(&self) -> i32
pub fn max_open_conns(&self) -> i32
Returns the value of max_open_conns, or the default value if max_open_conns is unset.
Sourcepub fn trace(&self) -> bool
pub fn trace(&self) -> bool
Returns the value of trace, or the default value if trace is unset.
Sourcepub fn at_rest_encrypt_key(&self) -> &str
pub fn at_rest_encrypt_key(&self) -> &str
Returns the value of at_rest_encrypt_key, or the default value if at_rest_encrypt_key is unset.
Sourcepub fn query_timeout(&self) -> i32
pub fn query_timeout(&self) -> i32
Returns the value of query_timeout, or the default value if query_timeout is unset.
Sourcepub fn disable_database_search(&self) -> bool
pub fn disable_database_search(&self) -> bool
Returns the value of disable_database_search, or the default value if disable_database_search is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConfigSql
impl<'de> Deserialize<'de> for ConfigSql
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ConfigSql
impl Message for ConfigSql
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for ConfigSql
Auto Trait Implementations§
impl Freeze for ConfigSql
impl RefUnwindSafe for ConfigSql
impl Send for ConfigSql
impl Sync for ConfigSql
impl Unpin for ConfigSql
impl UnwindSafe for ConfigSql
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request