#[non_exhaustive]pub struct DiscoveryEndpoint {
pub address: String,
pub port: i32,
pub psc_config: Option<PscConfig>,
/* private fields */
}Expand description
Endpoints on each network, for Redis clients to connect to 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.address: StringOutput only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.
port: i32Output only. The port number of the exposed Redis endpoint.
psc_config: Option<PscConfig>Output only. Customer configuration for where the endpoint is created and accessed from.
Implementations§
Source§impl DiscoveryEndpoint
impl DiscoveryEndpoint
pub fn new() -> Self
Sourcepub fn set_address<T: Into<String>>(self, v: T) -> Self
pub fn set_address<T: Into<String>>(self, v: T) -> Self
Sets the value of address.
Sourcepub fn set_psc_config<T>(self, v: T) -> Self
pub fn set_psc_config<T>(self, v: T) -> Self
Sets the value of psc_config.
Sourcepub fn set_or_clear_psc_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_psc_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of psc_config.
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