pub struct BootstrapConfig {
pub action: String,
pub cluster: Option<ClusterBootstrap>,
pub node: Option<NodeBootstrap>,
pub credentials: Option<CredentialsBootstrap>,
}Expand description
Bootstrap configuration for cluster initialization
§Examples
use redis_enterprise::{BootstrapConfig, ClusterBootstrap, CredentialsBootstrap};
let config = BootstrapConfig::builder()
.action("create_cluster")
.cluster(ClusterBootstrap::builder()
.name("my-cluster.local")
.rack_aware(true)
.build())
.credentials(CredentialsBootstrap::builder()
.username("admin@example.com")
.password("secure-password")
.build())
.build();Fields§
§action: StringAction to perform (e.g., ‘create’, ‘join’, ‘recover_cluster’)
cluster: Option<ClusterBootstrap>Cluster configuration for initialization
node: Option<NodeBootstrap>Node configuration for bootstrap
credentials: Option<CredentialsBootstrap>Admin credentials for cluster access
Implementations§
Source§impl BootstrapConfig
impl BootstrapConfig
Sourcepub fn builder() -> BootstrapConfigBuilder<((), (), (), ())>
pub fn builder() -> BootstrapConfigBuilder<((), (), (), ())>
Create a builder for building BootstrapConfig.
On the builder, call .action(...), .cluster(...)(optional), .node(...)(optional), .credentials(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of BootstrapConfig.
Trait Implementations§
Source§impl Clone for BootstrapConfig
impl Clone for BootstrapConfig
Source§fn clone(&self) -> BootstrapConfig
fn clone(&self) -> BootstrapConfig
Returns a duplicate 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 BootstrapConfig
impl Debug for BootstrapConfig
Source§impl<'de> Deserialize<'de> for BootstrapConfig
impl<'de> Deserialize<'de> for BootstrapConfig
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
Auto Trait Implementations§
impl Freeze for BootstrapConfig
impl RefUnwindSafe for BootstrapConfig
impl Send for BootstrapConfig
impl Sync for BootstrapConfig
impl Unpin for BootstrapConfig
impl UnwindSafe for BootstrapConfig
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