#[non_exhaustive]pub struct HealthCheckServiceReference {
pub health_check_service: Option<String>,
/* private fields */
}Available on crate features
global-network-endpoint-groups or network-endpoint-groups or region-network-endpoint-groups only.Expand description
A full or valid partial URL to a health check service. For example, the following are valid URLs:
- https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service
- projects/project-id/regions/us-west1/healthCheckServices/health-check-service
- regions/us-west1/healthCheckServices/health-check-service
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.health_check_service: Option<String>Implementations§
Source§impl HealthCheckServiceReference
impl HealthCheckServiceReference
pub fn new() -> Self
Sourcepub fn set_health_check_service<T>(self, v: T) -> Self
pub fn set_health_check_service<T>(self, v: T) -> Self
Sets the value of health_check_service.
§Example
ⓘ
let x = HealthCheckServiceReference::new().set_health_check_service("example");Sourcepub fn set_or_clear_health_check_service<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_health_check_service<T>(self, v: Option<T>) -> Self
Sets or clears the value of health_check_service.
§Example
ⓘ
let x = HealthCheckServiceReference::new().set_or_clear_health_check_service(Some("example"));
let x = HealthCheckServiceReference::new().set_or_clear_health_check_service(None::<String>);Trait Implementations§
Source§impl Clone for HealthCheckServiceReference
impl Clone for HealthCheckServiceReference
Source§fn clone(&self) -> HealthCheckServiceReference
fn clone(&self) -> HealthCheckServiceReference
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 HealthCheckServiceReference
impl Debug for HealthCheckServiceReference
Source§impl Default for HealthCheckServiceReference
impl Default for HealthCheckServiceReference
Source§fn default() -> HealthCheckServiceReference
fn default() -> HealthCheckServiceReference
Returns the “default value” for a type. Read more
impl StructuralPartialEq for HealthCheckServiceReference
Auto Trait Implementations§
impl Freeze for HealthCheckServiceReference
impl RefUnwindSafe for HealthCheckServiceReference
impl Send for HealthCheckServiceReference
impl Sync for HealthCheckServiceReference
impl Unpin for HealthCheckServiceReference
impl UnwindSafe for HealthCheckServiceReference
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