Struct google_api_proto::google::cloud::policysimulator::v1::ExplainedAccess
source · pub struct ExplainedAccess {
pub access_state: i32,
pub policies: Vec<ExplainedPolicy>,
pub errors: Vec<Status>,
}
Expand description
Details about how a set of policies, listed in [ExplainedPolicy][google.cloud.policysimulator.v1.ExplainedPolicy], resulted in a certain [AccessState][google.cloud.policysimulator.v1.AccessState] when replaying an access tuple.
Fields§
§access_state: i32
Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
policies: Vec<ExplainedPolicy>
If the [AccessState][google.cloud.policysimulator.v1.AccessState] is
UNKNOWN
, this field contains the policies that led to that result.
If the AccessState
is GRANTED
or NOT_GRANTED
, this field is
omitted.
errors: Vec<Status>
If the [AccessState][google.cloud.policysimulator.v1.AccessState] is
UNKNOWN
, this field contains a list of errors explaining why the result
is UNKNOWN
.
If the AccessState
is GRANTED
or NOT_GRANTED
, this field is
omitted.
Implementations§
source§impl ExplainedAccess
impl ExplainedAccess
sourcepub fn access_state(&self) -> AccessState
pub fn access_state(&self) -> AccessState
Returns the enum value of access_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_access_state(&mut self, value: AccessState)
pub fn set_access_state(&mut self, value: AccessState)
Sets access_state
to the provided enum value.
Trait Implementations§
source§impl Clone for ExplainedAccess
impl Clone for ExplainedAccess
source§fn clone(&self) -> ExplainedAccess
fn clone(&self) -> ExplainedAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplainedAccess
impl Debug for ExplainedAccess
source§impl Default for ExplainedAccess
impl Default for ExplainedAccess
source§impl Message for ExplainedAccess
impl Message for ExplainedAccess
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ExplainedAccess
impl PartialEq for ExplainedAccess
source§fn eq(&self, other: &ExplainedAccess) -> bool
fn eq(&self, other: &ExplainedAccess) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExplainedAccess
Auto Trait Implementations§
impl Freeze for ExplainedAccess
impl RefUnwindSafe for ExplainedAccess
impl Send for ExplainedAccess
impl Sync for ExplainedAccess
impl Unpin for ExplainedAccess
impl UnwindSafe for ExplainedAccess
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<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