Enum google_api_proto::google::cloud::securitycenter::v1p1beta1::organization_settings::asset_discovery_config::InclusionMode
source · #[repr(i32)]pub enum InclusionMode {
Unspecified = 0,
IncludeOnly = 1,
Exclude = 2,
}
Expand description
The mode of inclusion when running Asset Discovery. Asset discovery can be limited by explicitly identifying projects to be included or excluded. If INCLUDE_ONLY is set, then only those projects within the organization and their children are discovered during asset discovery. If EXCLUDE is set, then projects that don’t match those projects are discovered during asset discovery. If neither are set, then all projects within the organization are discovered during asset discovery.
Variants§
Unspecified = 0
Unspecified. Setting the mode with this value will disable inclusion/exclusion filtering for Asset Discovery.
IncludeOnly = 1
Asset Discovery will capture only the resources within the projects specified. All other resources will be ignored.
Exclude = 2
Asset Discovery will ignore all resources under the projects specified. All other resources will be retrieved.
Implementations§
source§impl InclusionMode
impl InclusionMode
source§impl InclusionMode
impl InclusionMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for InclusionMode
impl Clone for InclusionMode
source§fn clone(&self) -> InclusionMode
fn clone(&self) -> InclusionMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InclusionMode
impl Debug for InclusionMode
source§impl Default for InclusionMode
impl Default for InclusionMode
source§fn default() -> InclusionMode
fn default() -> InclusionMode
source§impl From<InclusionMode> for i32
impl From<InclusionMode> for i32
source§fn from(value: InclusionMode) -> i32
fn from(value: InclusionMode) -> i32
source§impl Hash for InclusionMode
impl Hash for InclusionMode
source§impl Ord for InclusionMode
impl Ord for InclusionMode
source§fn cmp(&self, other: &InclusionMode) -> Ordering
fn cmp(&self, other: &InclusionMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InclusionMode
impl PartialEq for InclusionMode
source§fn eq(&self, other: &InclusionMode) -> bool
fn eq(&self, other: &InclusionMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InclusionMode
impl PartialOrd for InclusionMode
source§fn partial_cmp(&self, other: &InclusionMode) -> Option<Ordering>
fn partial_cmp(&self, other: &InclusionMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for InclusionMode
impl TryFrom<i32> for InclusionMode
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<InclusionMode, DecodeError>
fn try_from(value: i32) -> Result<InclusionMode, DecodeError>
impl Copy for InclusionMode
impl Eq for InclusionMode
impl StructuralPartialEq for InclusionMode
Auto Trait Implementations§
impl Freeze for InclusionMode
impl RefUnwindSafe for InclusionMode
impl Send for InclusionMode
impl Sync for InclusionMode
impl Unpin for InclusionMode
impl UnwindSafe for InclusionMode
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request