#[non_exhaustive]pub struct GetHealthRequest {
pub project: String,
pub region: String,
pub target_pool: String,
pub body: Option<InstanceReference>,
/* private fields */
}Available on crate feature
target-pools only.Expand description
Synthetic request message for the getHealth() method.
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.project: StringProject ID for this request.
region: StringName of the region scoping this request.
target_pool: StringName of the TargetPool resource to which the queried instance belongs.
body: Option<InstanceReference>Synthetic request body field for the getHealth() method.
Implementations§
Source§impl GetHealthRequest
impl GetHealthRequest
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_target_pool<T: Into<String>>(self, v: T) -> Self
pub fn set_target_pool<T: Into<String>>(self, v: T) -> Self
Sets the value of target_pool.
§Example
ⓘ
let x = GetHealthRequest::new().set_target_pool("example");Sourcepub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
Trait Implementations§
Source§impl Clone for GetHealthRequest
impl Clone for GetHealthRequest
Source§fn clone(&self) -> GetHealthRequest
fn clone(&self) -> GetHealthRequest
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 GetHealthRequest
impl Debug for GetHealthRequest
Source§impl Default for GetHealthRequest
impl Default for GetHealthRequest
Source§fn default() -> GetHealthRequest
fn default() -> GetHealthRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetHealthRequest
impl PartialEq for GetHealthRequest
impl StructuralPartialEq for GetHealthRequest
Auto Trait Implementations§
impl Freeze for GetHealthRequest
impl RefUnwindSafe for GetHealthRequest
impl Send for GetHealthRequest
impl Sync for GetHealthRequest
impl Unpin for GetHealthRequest
impl UnwindSafe for GetHealthRequest
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