Struct google_api_proto::google::cloud::policysimulator::v1::AccessStateDiff
source · pub struct AccessStateDiff {
pub baseline: Option<ExplainedAccess>,
pub simulated: Option<ExplainedAccess>,
pub access_change: i32,
}
Expand description
A summary and comparison of the principal’s access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.
Fields§
§baseline: Option<ExplainedAccess>
The results of evaluating the access tuple under the current (baseline) policies.
If the [AccessState][google.cloud.policysimulator.v1.AccessState] couldn’t be fully evaluated, this field explains why.
simulated: Option<ExplainedAccess>
The results of evaluating the access tuple under the proposed (simulated) policies.
If the AccessState couldn’t be fully evaluated, this field explains why.
access_change: i32
How the principal’s access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.
Implementations§
source§impl AccessStateDiff
impl AccessStateDiff
sourcepub fn access_change(&self) -> AccessChangeType
pub fn access_change(&self) -> AccessChangeType
Returns the enum value of access_change
, or the default if the field is set to an invalid enum value.
sourcepub fn set_access_change(&mut self, value: AccessChangeType)
pub fn set_access_change(&mut self, value: AccessChangeType)
Sets access_change
to the provided enum value.
Trait Implementations§
source§impl Clone for AccessStateDiff
impl Clone for AccessStateDiff
source§fn clone(&self) -> AccessStateDiff
fn clone(&self) -> AccessStateDiff
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessStateDiff
impl Debug for AccessStateDiff
source§impl Default for AccessStateDiff
impl Default for AccessStateDiff
source§impl Message for AccessStateDiff
impl Message for AccessStateDiff
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 AccessStateDiff
impl PartialEq for AccessStateDiff
source§fn eq(&self, other: &AccessStateDiff) -> bool
fn eq(&self, other: &AccessStateDiff) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessStateDiff
Auto Trait Implementations§
impl Freeze for AccessStateDiff
impl RefUnwindSafe for AccessStateDiff
impl Send for AccessStateDiff
impl Sync for AccessStateDiff
impl Unpin for AccessStateDiff
impl UnwindSafe for AccessStateDiff
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