1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::{
  auth::SASLMechanism,
  types::FieldTable,
};

#[derive(Clone, Debug, PartialEq)]
pub struct ConnectionProperties {
  pub mechanism:         SASLMechanism,
  pub locale:            String,
  pub client_properties: FieldTable,
}

impl Default for ConnectionProperties {
  fn default() -> Self {
    Self {
      mechanism:         SASLMechanism::default(),
      locale:            "en_US".into(),
      client_properties: FieldTable::default(),
    }
  }
}