pub struct GoogleCloudPolicysimulatorV1BindingExplanation {
pub access: Option<String>,
pub condition: Option<GoogleTypeExpr>,
pub memberships: Option<HashMap<String, GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership>>,
pub relevance: Option<String>,
pub role: Option<String>,
pub role_permission: Option<String>,
pub role_permission_relevance: Option<String>,
}
Expand description
Details about how a binding in a policy affects a principal’s ability to use a permission.
This type is not used in any activity, and only used as part of another schema.
Fields
access: Option<String>
Required. Indicates whether this binding provides the specified permission to the specified principal for the specified resource. This field does not indicate whether the principal actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the principal actually has the permission, use the access
field in the TroubleshootIamPolicyResponse.
condition: Option<GoogleTypeExpr>
A condition expression that prevents this binding from granting access unless the expression evaluates to true
. To learn about IAM Conditions, see https://cloud.google.com/iam/docs/conditions-overview.
memberships: Option<HashMap<String, GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership>>
Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly. Each key identifies a principal in the binding, and each value indicates whether the principal in the binding includes the principal in the request. For example, suppose that a binding includes the following principals: * user:alice@example.com
* group:product-eng@example.com
The principal in the replayed access tuple is user:bob@example.com
. This user is a principal of the group group:product-eng@example.com
. For the first principal in the binding, the key is user:alice@example.com
, and the membership
field in the value is set to MEMBERSHIP_NOT_INCLUDED
. For the second principal in the binding, the key is group:product-eng@example.com
, and the membership
field in the value is set to MEMBERSHIP_INCLUDED
.
relevance: Option<String>
The relevance of this binding to the overall determination for the entire policy.
role: Option<String>
The role that this binding grants. For example, roles/compute.serviceAgent
. For a complete list of predefined IAM roles, as well as the permissions in each role, see https://cloud.google.com/iam/help/roles/reference.
role_permission: Option<String>
Indicates whether the role granted by this binding contains the specified permission.
role_permission_relevance: Option<String>
The relevance of the permission’s existence, or nonexistence, in the role to the overall determination for the entire policy.
Trait Implementations
sourceimpl Clone for GoogleCloudPolicysimulatorV1BindingExplanation
impl Clone for GoogleCloudPolicysimulatorV1BindingExplanation
sourcefn clone(&self) -> GoogleCloudPolicysimulatorV1BindingExplanation
fn clone(&self) -> GoogleCloudPolicysimulatorV1BindingExplanation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for GoogleCloudPolicysimulatorV1BindingExplanation
impl Default for GoogleCloudPolicysimulatorV1BindingExplanation
sourcefn default() -> GoogleCloudPolicysimulatorV1BindingExplanation
fn default() -> GoogleCloudPolicysimulatorV1BindingExplanation
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleCloudPolicysimulatorV1BindingExplanation
impl<'de> Deserialize<'de> for GoogleCloudPolicysimulatorV1BindingExplanation
sourcefn 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
impl Part for GoogleCloudPolicysimulatorV1BindingExplanation
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudPolicysimulatorV1BindingExplanation
impl Send for GoogleCloudPolicysimulatorV1BindingExplanation
impl Sync for GoogleCloudPolicysimulatorV1BindingExplanation
impl Unpin for GoogleCloudPolicysimulatorV1BindingExplanation
impl UnwindSafe for GoogleCloudPolicysimulatorV1BindingExplanation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more