#[non_exhaustive]pub struct InstanceEndpoint {
pub connections: Vec<ConnectionDetail>,
/* private fields */
}Expand description
InstanceEndpoint consists of PSC connections that are created as a group in each VPC network for accessing the instance. In each group, there shall be one connection for each service attachment in the cluster.
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.connections: Vec<ConnectionDetail>Optional. A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.
Implementations§
Source§impl InstanceEndpoint
impl InstanceEndpoint
pub fn new() -> Self
Sourcepub fn set_connections<T, V>(self, v: T) -> Self
pub fn set_connections<T, V>(self, v: T) -> Self
Sets the value of connections.
§Example
ⓘ
use google_cloud_memorystore_v1::model::instance::ConnectionDetail;
let x = InstanceEndpoint::new()
.set_connections([
ConnectionDetail::default()/* use setters */,
ConnectionDetail::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InstanceEndpoint
impl Clone for InstanceEndpoint
Source§fn clone(&self) -> InstanceEndpoint
fn clone(&self) -> InstanceEndpoint
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 InstanceEndpoint
impl Debug for InstanceEndpoint
Source§impl Default for InstanceEndpoint
impl Default for InstanceEndpoint
Source§fn default() -> InstanceEndpoint
fn default() -> InstanceEndpoint
Returns the “default value” for a type. Read more
Source§impl Message for InstanceEndpoint
impl Message for InstanceEndpoint
Source§impl PartialEq for InstanceEndpoint
impl PartialEq for InstanceEndpoint
impl StructuralPartialEq for InstanceEndpoint
Auto Trait Implementations§
impl Freeze for InstanceEndpoint
impl RefUnwindSafe for InstanceEndpoint
impl Send for InstanceEndpoint
impl Sync for InstanceEndpoint
impl Unpin for InstanceEndpoint
impl UnwindSafe for InstanceEndpoint
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