Struct google_deploymentmanager2::Rule
source · pub struct Rule {
pub description: Option<String>,
pub not_ins: Option<Vec<String>>,
pub action: Option<String>,
pub permissions: Option<Vec<String>>,
pub ins: Option<Vec<String>>,
pub conditions: Option<Vec<Condition>>,
pub log_configs: Option<Vec<LogConfig>>,
}Expand description
A rule to be applied in a Policy.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>Human-readable description of the rule.
not_ins: Option<Vec<String>>If one or more ‘not_in’ clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
action: Option<String>Required
permissions: Option<Vec<String>>A permission is a string of form ‘..’ (e.g., ‘storage.buckets.list’). A value of ‘’ matches all permissions, and a verb part of ‘’ (e.g., ‘storage.buckets.*’) matches all verbs.
ins: Option<Vec<String>>If one or more ‘in’ clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
conditions: Option<Vec<Condition>>Additional restrictions that must be met. All conditions must pass for the rule to match.
log_configs: Option<Vec<LogConfig>>The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rule
impl<'de> Deserialize<'de> for Rule
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>,
impl Part for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more