#[non_exhaustive]pub struct GetHealthRequest {
pub backend_service: String,
pub project: String,
pub body: Option<ResourceGroupReference>,
/* private fields */
}Available on crate feature
backend-services 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.backend_service: StringName of the BackendService resource to which the queried instance belongs.
project: String§body: Option<ResourceGroupReference>Synthetic request body field for the getHealth() method.
Implementations§
Source§impl GetHealthRequest
impl GetHealthRequest
pub fn new() -> Self
Sourcepub fn set_backend_service<T: Into<String>>(self, v: T) -> Self
pub fn set_backend_service<T: Into<String>>(self, v: T) -> Self
Sets the value of backend_service.
§Example
ⓘ
let x = GetHealthRequest::new().set_backend_service("example");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_body<T>(self, v: T) -> Selfwhere
T: Into<ResourceGroupReference>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<ResourceGroupReference>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceGroupReference>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceGroupReference>,
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