pub struct MongodbProfile {
pub host_addresses: Vec<HostAddress>,
pub replica_set: String,
pub username: String,
pub password: String,
pub secret_manager_stored_password: String,
pub ssl_config: Option<MongodbSslConfig>,
pub mongodb_connection_format: Option<MongodbConnectionFormat>,
}Expand description
MongoDB profile.
Fields§
§host_addresses: Vec<HostAddress>Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.
replica_set: StringOptional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty. For Standard connection format, this field must be specified.
username: StringRequired. Username for the MongoDB connection.
password: StringOptional. Password for the MongoDB connection. Mutually exclusive with the
secret_manager_stored_password field.
secret_manager_stored_password: StringOptional. A reference to a Secret Manager resource name storing the
SQLServer connection password. Mutually exclusive with the password
field.
ssl_config: Option<MongodbSslConfig>Optional. SSL configuration for the MongoDB connection.
mongodb_connection_format: Option<MongodbConnectionFormat>MongoDB connection format. Must specify either srv_connection_format or standard_connection_format.
Trait Implementations§
Source§impl Clone for MongodbProfile
impl Clone for MongodbProfile
Source§fn clone(&self) -> MongodbProfile
fn clone(&self) -> MongodbProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MongodbProfile
impl Debug for MongodbProfile
Source§impl Default for MongodbProfile
impl Default for MongodbProfile
Source§fn default() -> MongodbProfile
fn default() -> MongodbProfile
Source§impl Message for MongodbProfile
impl Message for MongodbProfile
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.Source§impl PartialEq for MongodbProfile
impl PartialEq for MongodbProfile
impl StructuralPartialEq for MongodbProfile
Auto Trait Implementations§
impl Freeze for MongodbProfile
impl RefUnwindSafe for MongodbProfile
impl Send for MongodbProfile
impl Sync for MongodbProfile
impl Unpin for MongodbProfile
impl UnwindSafe for MongodbProfile
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