#[non_exhaustive]pub struct ResourceSelector {
pub resource_types: Vec<String>,
/* private fields */
}Expand description
Resource for selecting resource type.
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.resource_types: Vec<String>Required. The resource types to run the detector on.
Implementations§
Source§impl ResourceSelector
impl ResourceSelector
pub fn new() -> Self
Sourcepub fn set_resource_types<T, V>(self, v: T) -> Self
pub fn set_resource_types<T, V>(self, v: T) -> Self
Sets the value of resource_types.
Trait Implementations§
Source§impl Clone for ResourceSelector
impl Clone for ResourceSelector
Source§fn clone(&self) -> ResourceSelector
fn clone(&self) -> ResourceSelector
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 ResourceSelector
impl Debug for ResourceSelector
Source§impl Default for ResourceSelector
impl Default for ResourceSelector
Source§fn default() -> ResourceSelector
fn default() -> ResourceSelector
Returns the “default value” for a type. Read more
Source§impl Message for ResourceSelector
impl Message for ResourceSelector
Source§impl PartialEq for ResourceSelector
impl PartialEq for ResourceSelector
impl StructuralPartialEq for ResourceSelector
Auto Trait Implementations§
impl Freeze for ResourceSelector
impl RefUnwindSafe for ResourceSelector
impl Send for ResourceSelector
impl Sync for ResourceSelector
impl Unpin for ResourceSelector
impl UnwindSafe for ResourceSelector
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