pub struct ClusterConfig {
pub writer_url: Option<String>,
pub read_url: Option<String>,
}Expand description
Cluster configuration
Fields§
§writer_url: Option<String>§read_url: Option<String>Implementations§
Source§impl ClusterConfig
impl ClusterConfig
Sourcepub fn with_writer_url<S: Into<String>>(self, url: S) -> Self
pub fn with_writer_url<S: Into<String>>(self, url: S) -> Self
Set writer URL
Sourcepub fn with_read_url<S: Into<String>>(self, url: S) -> Self
pub fn with_read_url<S: Into<String>>(self, url: S) -> Self
Set read URL
Trait Implementations§
Source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
Source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClusterConfig
impl Debug for ClusterConfig
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnsafeUnpin for ClusterConfig
impl UnwindSafe for ClusterConfig
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