#[non_exhaustive]pub struct OracleAsmConfig {
pub hostname: String,
pub port: i32,
pub username: String,
pub password: String,
pub asm_service: String,
pub connection_attributes: HashMap<String, String>,
pub oracle_ssl_config: Option<OracleSslConfig>,
pub secret_manager_stored_password: String,
/* private fields */
}Expand description
Configuration for Oracle Automatic Storage Management (ASM) connection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hostname: StringRequired. Hostname for the Oracle ASM connection.
port: i32Required. Port for the Oracle ASM connection.
username: StringRequired. Username for the Oracle ASM connection.
password: StringOptional. Password for the Oracle ASM connection. Mutually exclusive with
the secret_manager_stored_password field.
asm_service: StringRequired. ASM service name for the Oracle ASM connection.
connection_attributes: HashMap<String, String>Optional. Connection string attributes
oracle_ssl_config: Option<OracleSslConfig>Optional. SSL configuration for the Oracle connection.
secret_manager_stored_password: StringOptional. A reference to a Secret Manager resource name storing the Oracle
ASM connection password. Mutually exclusive with the password field.
Implementations§
Source§impl OracleAsmConfig
impl OracleAsmConfig
Sourcepub fn set_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_hostname<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_asm_service<T: Into<String>>(self, v: T) -> Self
pub fn set_asm_service<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_connection_attributes<T, K, V>(self, v: T) -> Self
pub fn set_connection_attributes<T, K, V>(self, v: T) -> Self
Sets the value of connection_attributes.
§Example
let x = OracleAsmConfig::new().set_connection_attributes([
("key0", "abc"),
("key1", "xyz"),
]);Sourcepub fn set_oracle_ssl_config<T>(self, v: T) -> Selfwhere
T: Into<OracleSslConfig>,
pub fn set_oracle_ssl_config<T>(self, v: T) -> Selfwhere
T: Into<OracleSslConfig>,
Sets the value of oracle_ssl_config.
§Example
use google_cloud_datastream_v1::model::OracleSslConfig;
let x = OracleAsmConfig::new().set_oracle_ssl_config(OracleSslConfig::default()/* use setters */);Sourcepub fn set_or_clear_oracle_ssl_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OracleSslConfig>,
pub fn set_or_clear_oracle_ssl_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OracleSslConfig>,
Sets or clears the value of oracle_ssl_config.
§Example
use google_cloud_datastream_v1::model::OracleSslConfig;
let x = OracleAsmConfig::new().set_or_clear_oracle_ssl_config(Some(OracleSslConfig::default()/* use setters */));
let x = OracleAsmConfig::new().set_or_clear_oracle_ssl_config(None::<OracleSslConfig>);Sourcepub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_manager_stored_password.
§Example
let x = OracleAsmConfig::new().set_secret_manager_stored_password("example");Trait Implementations§
Source§impl Clone for OracleAsmConfig
impl Clone for OracleAsmConfig
Source§fn clone(&self) -> OracleAsmConfig
fn clone(&self) -> OracleAsmConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OracleAsmConfig
impl Debug for OracleAsmConfig
Source§impl Default for OracleAsmConfig
impl Default for OracleAsmConfig
Source§fn default() -> OracleAsmConfig
fn default() -> OracleAsmConfig
Source§impl Message for OracleAsmConfig
impl Message for OracleAsmConfig
Source§impl PartialEq for OracleAsmConfig
impl PartialEq for OracleAsmConfig
impl StructuralPartialEq for OracleAsmConfig
Auto Trait Implementations§
impl Freeze for OracleAsmConfig
impl RefUnwindSafe for OracleAsmConfig
impl Send for OracleAsmConfig
impl Sync for OracleAsmConfig
impl Unpin for OracleAsmConfig
impl UnsafeUnpin for OracleAsmConfig
impl UnwindSafe for OracleAsmConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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