#[non_exhaustive]pub struct DiscoveryEndpoint {
pub address: String,
pub port: i32,
pub network: String,
/* private fields */
}Expand description
Represents an endpoint for clients to connect to the instance.
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.address: StringOutput only. IP address of the exposed endpoint clients connect to.
port: i32Output only. The port number of the exposed endpoint.
network: StringOutput only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.
Implementations§
Trait Implementations§
Source§impl Clone for DiscoveryEndpoint
impl Clone for DiscoveryEndpoint
Source§fn clone(&self) -> DiscoveryEndpoint
fn clone(&self) -> DiscoveryEndpoint
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 DiscoveryEndpoint
impl Debug for DiscoveryEndpoint
Source§impl Default for DiscoveryEndpoint
impl Default for DiscoveryEndpoint
Source§fn default() -> DiscoveryEndpoint
fn default() -> DiscoveryEndpoint
Returns the “default value” for a type. Read more
Source§impl Message for DiscoveryEndpoint
impl Message for DiscoveryEndpoint
Source§impl PartialEq for DiscoveryEndpoint
impl PartialEq for DiscoveryEndpoint
impl StructuralPartialEq for DiscoveryEndpoint
Auto Trait Implementations§
impl Freeze for DiscoveryEndpoint
impl RefUnwindSafe for DiscoveryEndpoint
impl Send for DiscoveryEndpoint
impl Sync for DiscoveryEndpoint
impl Unpin for DiscoveryEndpoint
impl UnwindSafe for DiscoveryEndpoint
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