pub struct ClusterOptions {
pub topology: Topology,
pub version_id: String,
pub paths: Vec<PathBuf>,
pub tls: Option<TlsOptions>,
pub auth: Option<Credential>,
/* private fields */
}
Fields§
§topology: Topology
§version_id: String
§paths: Vec<PathBuf>
§tls: Option<TlsOptions>
§auth: Option<Credential>
Implementations§
Source§impl ClusterOptions
impl ClusterOptions
Sourcepub fn builder() -> ClusterOptionsBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> ClusterOptionsBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building ClusterOptions
.
On the builder, call .topology(...)
, .version_id(...)
, .paths(...)
(optional), .tls(...)
(optional), .auth(...)
(optional), .extra_mongod_args(...)
(optional), .verbose(...)
(optional), .deprecated_tls_options(...)
(optional), .save_logs(...)
(optional) to set the values of the fields (they accept Into
values).
Finally, call .build()
to create the instance of ClusterOptions
.
Trait Implementations§
Source§impl Clone for ClusterOptions
impl Clone for ClusterOptions
Source§fn clone(&self) -> ClusterOptions
fn clone(&self) -> ClusterOptions
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 moreAuto Trait Implementations§
impl Freeze for ClusterOptions
impl RefUnwindSafe for ClusterOptions
impl Send for ClusterOptions
impl Sync for ClusterOptions
impl Unpin for ClusterOptions
impl UnwindSafe for ClusterOptions
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