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