#[non_exhaustive]pub struct ReplicaInfo {
pub location: String,
pub type: ReplicaType,
pub default_leader_location: bool,
/* private fields */
}
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.location: String
The location of the serving resources, e.g., “us-central1”.
type: ReplicaType
The type of replica.
default_leader_location: bool
If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.
Implementations§
Source§impl ReplicaInfo
impl ReplicaInfo
pub fn new() -> Self
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Sourcepub fn set_type<T: Into<ReplicaType>>(self, v: T) -> Self
pub fn set_type<T: Into<ReplicaType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_default_leader_location<T: Into<bool>>(self, v: T) -> Self
pub fn set_default_leader_location<T: Into<bool>>(self, v: T) -> Self
Sets the value of default_leader_location.
Trait Implementations§
Source§impl Clone for ReplicaInfo
impl Clone for ReplicaInfo
Source§fn clone(&self) -> ReplicaInfo
fn clone(&self) -> ReplicaInfo
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 ReplicaInfo
impl Debug for ReplicaInfo
Source§impl Default for ReplicaInfo
impl Default for ReplicaInfo
Source§fn default() -> ReplicaInfo
fn default() -> ReplicaInfo
Returns the “default value” for a type. Read more
Source§impl Message for ReplicaInfo
impl Message for ReplicaInfo
Source§impl PartialEq for ReplicaInfo
impl PartialEq for ReplicaInfo
impl StructuralPartialEq for ReplicaInfo
Auto Trait Implementations§
impl Freeze for ReplicaInfo
impl RefUnwindSafe for ReplicaInfo
impl Send for ReplicaInfo
impl Sync for ReplicaInfo
impl Unpin for ReplicaInfo
impl UnwindSafe for ReplicaInfo
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