#[non_exhaustive]pub struct ResourceGroup {
pub group_id: String,
pub resource_type: GroupResourceType,
/* private fields */
}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
pub fn new() -> Self
Sourcepub fn set_group_id<T: Into<String>>(self, v: T) -> Self
pub fn set_group_id<T: Into<String>>(self, v: T) -> Self
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.
§Example
ⓘ
use google_cloud_monitoring_v3::model::GroupResourceType;
let x0 = ResourceGroup::new().set_resource_type(GroupResourceType::Instance);
let x1 = ResourceGroup::new().set_resource_type(GroupResourceType::AwsElbLoadBalancer);Trait Implementations§
Source§impl Clone for ResourceGroup
impl Clone for ResourceGroup
Source§fn clone(&self) -> ResourceGroup
fn clone(&self) -> ResourceGroup
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 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 Message for ResourceGroup
impl Message for ResourceGroup
Source§impl PartialEq for ResourceGroup
impl PartialEq 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