#[non_exhaustive]pub struct ResourceGroup {
pub group_id: String,
pub resource_type: GroupResourceType,
}Expand description
The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored.
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.group_id: StringThe group of resources being monitored. Should be only the [GROUP_ID],
and not the full-path
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID].
resource_type: GroupResourceTypeThe resource type of the group members.
Implementations§
Source§impl ResourceGroup
impl ResourceGroup
Sourcepub fn set_group_id<T: Into<String>>(self, v: T) -> Self
pub fn set_group_id<T: Into<String>>(self, v: T) -> Self
Sets the value of group_id.
Sourcepub fn set_resource_type<T: Into<GroupResourceType>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<GroupResourceType>>(self, v: T) -> Self
Sets the value of resource_type.
Trait Implementations§
Source§impl Clone for ResourceGroup
impl Clone for ResourceGroup
Source§fn clone(&self) -> ResourceGroup
fn clone(&self) -> ResourceGroup
Returns a copy 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 ResourceGroup
impl Debug for ResourceGroup
Source§impl Default for ResourceGroup
impl Default for ResourceGroup
Source§fn default() -> ResourceGroup
fn default() -> ResourceGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceGroupwhere
ResourceGroup: Default,
impl<'de> Deserialize<'de> for ResourceGroupwhere
ResourceGroup: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ResourceGroup
impl Message for ResourceGroup
Source§impl PartialEq for ResourceGroup
impl PartialEq for ResourceGroup
Source§impl Serialize for ResourceGroup
impl Serialize for ResourceGroup
impl StructuralPartialEq for ResourceGroup
Auto Trait Implementations§
impl Freeze for ResourceGroup
impl RefUnwindSafe for ResourceGroup
impl Send for ResourceGroup
impl Sync for ResourceGroup
impl Unpin for ResourceGroup
impl UnwindSafe for ResourceGroup
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