#[non_exhaustive]pub struct Membership {
pub primary_cluster: Option<RemoteCluster>,
pub secondary_clusters: Vec<RemoteCluster>,
/* private fields */
}Expand description
An output only view of all the member clusters participating in the cross cluster replication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.primary_cluster: Option<RemoteCluster>Output only. The primary cluster that acts as the source of replication for the secondary clusters.
secondary_clusters: Vec<RemoteCluster>Output only. The list of secondary clusters replicating from the primary cluster.
Implementations§
Source§impl Membership
impl Membership
pub fn new() -> Self
Sourcepub fn set_primary_cluster<T>(self, v: T) -> Selfwhere
T: Into<RemoteCluster>,
pub fn set_primary_cluster<T>(self, v: T) -> Selfwhere
T: Into<RemoteCluster>,
Sets the value of primary_cluster.
Sourcepub fn set_or_clear_primary_cluster<T>(self, v: Option<T>) -> Selfwhere
T: Into<RemoteCluster>,
pub fn set_or_clear_primary_cluster<T>(self, v: Option<T>) -> Selfwhere
T: Into<RemoteCluster>,
Sets or clears the value of primary_cluster.
Sourcepub fn set_secondary_clusters<T, V>(self, v: T) -> Self
pub fn set_secondary_clusters<T, V>(self, v: T) -> Self
Sets the value of secondary_clusters.
Trait Implementations§
Source§impl Clone for Membership
impl Clone for Membership
Source§fn clone(&self) -> Membership
fn clone(&self) -> Membership
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 Membership
impl Debug for Membership
Source§impl Default for Membership
impl Default for Membership
Source§fn default() -> Membership
fn default() -> Membership
Returns the “default value” for a type. Read more
Source§impl PartialEq for Membership
impl PartialEq for Membership
impl StructuralPartialEq for Membership
Auto Trait Implementations§
impl Freeze for Membership
impl RefUnwindSafe for Membership
impl Send for Membership
impl Sync for Membership
impl Unpin for Membership
impl UnwindSafe for Membership
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