pub struct SqlConnectionInfo {
pub connection_info: ConnectionInfo,
pub data_source: String,
pub server_name: Option<String>,
pub port: Option<i64>,
pub server_version: Option<String>,
pub server_brand_version: Option<String>,
pub resource_id: Option<String>,
pub authentication: Option<AuthenticationType>,
pub encrypt_connection: Option<bool>,
pub additional_settings: Option<String>,
pub trust_server_certificate: Option<bool>,
pub platform: Option<SqlServerSourcePlatform>,
}
Expand description
Information for connecting to SQL database server
Fields§
§connection_info: ConnectionInfo
§data_source: String
Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber
server_name: Option<String>
name of the server
port: Option<i64>
Port for Server
server_version: Option<String>
server version
server_brand_version: Option<String>
server brand version
resource_id: Option<String>
Represents the ID of an HTTP resource represented by an Azure resource provider.
authentication: Option<AuthenticationType>
An enumeration of possible authentication types when connecting
encrypt_connection: Option<bool>
Whether to encrypt the connection
additional_settings: Option<String>
Additional connection settings
trust_server_certificate: Option<bool>
Whether to trust the server certificate
platform: Option<SqlServerSourcePlatform>
An enumeration of source platform types
Implementations§
source§impl SqlConnectionInfo
impl SqlConnectionInfo
pub fn new(connection_info: ConnectionInfo, data_source: String) -> Self
Trait Implementations§
source§impl Clone for SqlConnectionInfo
impl Clone for SqlConnectionInfo
source§fn clone(&self) -> SqlConnectionInfo
fn clone(&self) -> SqlConnectionInfo
Returns a copy 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 SqlConnectionInfo
impl Debug for SqlConnectionInfo
source§impl<'de> Deserialize<'de> for SqlConnectionInfo
impl<'de> Deserialize<'de> for SqlConnectionInfo
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 PartialEq<SqlConnectionInfo> for SqlConnectionInfo
impl PartialEq<SqlConnectionInfo> for SqlConnectionInfo
source§fn eq(&self, other: &SqlConnectionInfo) -> bool
fn eq(&self, other: &SqlConnectionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SqlConnectionInfo
impl Serialize for SqlConnectionInfo
impl StructuralPartialEq for SqlConnectionInfo
Auto Trait Implementations§
impl RefUnwindSafe for SqlConnectionInfo
impl Send for SqlConnectionInfo
impl Sync for SqlConnectionInfo
impl Unpin for SqlConnectionInfo
impl UnwindSafe for SqlConnectionInfo
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