#[non_exhaustive]pub struct ConnectionInfo {
pub name: String,
pub ip_address: String,
pub public_ip_address: String,
pub instance_uid: String,
/* private fields */
}Expand description
ConnectionInfo singleton resource. https://google.aip.dev/156
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.name: StringThe name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters//instances//connectionInfo This field currently has no semantic meaning.
ip_address: StringOutput only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
public_ip_address: StringOutput only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
instance_uid: StringOutput only. The unique ID of the Instance.
Implementations§
Source§impl ConnectionInfo
impl ConnectionInfo
pub fn new() -> Self
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_public_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_public_ip_address<T: Into<String>>(self, v: T) -> Self
Sets the value of public_ip_address.
§Example
ⓘ
let x = ConnectionInfo::new().set_public_ip_address("example");Sourcepub fn set_instance_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_uid.
§Example
ⓘ
let x = ConnectionInfo::new().set_instance_uid("example");Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
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 ConnectionInfo
impl Debug for ConnectionInfo
Source§impl Default for ConnectionInfo
impl Default for ConnectionInfo
Source§fn default() -> ConnectionInfo
fn default() -> ConnectionInfo
Returns the “default value” for a type. Read more
Source§impl Message for ConnectionInfo
impl Message for ConnectionInfo
Source§impl PartialEq for ConnectionInfo
impl PartialEq for ConnectionInfo
impl StructuralPartialEq for ConnectionInfo
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnsafeUnpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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