pub struct CredentialsFile {
pub user: Option<String>,
pub host: Option<String>,
pub port: Option<NonZeroU16>,
pub password: Option<String>,
pub secret_key: Option<String>,
pub database: Option<String>,
pub branch: Option<String>,
pub tls_ca: Option<String>,
pub tls_security: TlsSecurity,
pub tls_server_name: Option<String>,
/* private fields */
}Expand description
An opaque type representing a credentials file.
Use std::str::FromStr to parse a credentials file from a string.
Fields§
§user: Option<String>§host: Option<String>§port: Option<NonZeroU16>§password: Option<String>§secret_key: Option<String>§database: Option<String>§branch: Option<String>§tls_ca: Option<String>§tls_security: TlsSecurity§tls_server_name: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CredentialsFile
impl Clone for CredentialsFile
Source§fn clone(&self) -> CredentialsFile
fn clone(&self) -> CredentialsFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialsFile
impl Debug for CredentialsFile
Source§impl Default for CredentialsFile
impl Default for CredentialsFile
Source§fn default() -> CredentialsFile
fn default() -> CredentialsFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CredentialsFile
impl<'de> Deserialize<'de> for CredentialsFile
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CredentialsFile> for Params
impl From<&CredentialsFile> for Params
Source§fn from(credentials: &CredentialsFile) -> Self
fn from(credentials: &CredentialsFile) -> Self
Converts to this type from the input type.
Source§impl From<CredentialsFile> for Params
impl From<CredentialsFile> for Params
Source§fn from(credentials: CredentialsFile) -> Self
fn from(credentials: CredentialsFile) -> Self
Converts to this type from the input type.
Source§impl FromStr for CredentialsFile
impl FromStr for CredentialsFile
Source§impl PartialEq for CredentialsFile
impl PartialEq for CredentialsFile
Source§impl Serialize for CredentialsFile
impl Serialize for CredentialsFile
impl Eq for CredentialsFile
impl StructuralPartialEq for CredentialsFile
Auto Trait Implementations§
impl Freeze for CredentialsFile
impl RefUnwindSafe for CredentialsFile
impl Send for CredentialsFile
impl Sync for CredentialsFile
impl Unpin for CredentialsFile
impl UnwindSafe for CredentialsFile
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
Mutably borrows from an owned value. Read more