Struct google_api_proto::google::api::ConfigChange
source · pub struct ConfigChange {
pub element: String,
pub old_value: String,
pub new_value: String,
pub change_type: i32,
pub advices: Vec<Advice>,
}
Expand description
Output generated from semantically comparing two versions of a service configuration.
Includes detailed information about a field that have changed with applicable advice about potential consequences for the change, such as backwards-incompatibility.
Fields§
§element: String
Object hierarchy path to the change, with levels separated by a ‘.’ character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term ‘key’ is used. If the field has no unique identifier, the numeric index is used. Examples:
- visibility.rules[selector==“google.LibraryService.ListBooks”].restriction
- quota.metric_rules[selector==“google”].metric_costs[key==“reads”].value
- logging.producer_destinations[0]
old_value: String
Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.
new_value: String
Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.
change_type: i32
The type for this change, either ADDED, REMOVED, or MODIFIED.
advices: Vec<Advice>
Collection of advice provided for this change, useful for determining the possible impact of this change.
Implementations§
source§impl ConfigChange
impl ConfigChange
sourcepub fn change_type(&self) -> ChangeType
pub fn change_type(&self) -> ChangeType
Returns the enum value of change_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_change_type(&mut self, value: ChangeType)
pub fn set_change_type(&mut self, value: ChangeType)
Sets change_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ConfigChange
impl Clone for ConfigChange
source§fn clone(&self) -> ConfigChange
fn clone(&self) -> ConfigChange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigChange
impl Debug for ConfigChange
source§impl Default for ConfigChange
impl Default for ConfigChange
source§impl Message for ConfigChange
impl Message for ConfigChange
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 ConfigChange
impl PartialEq for ConfigChange
source§fn eq(&self, other: &ConfigChange) -> bool
fn eq(&self, other: &ConfigChange) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConfigChange
Auto Trait Implementations§
impl Freeze for ConfigChange
impl RefUnwindSafe for ConfigChange
impl Send for ConfigChange
impl Sync for ConfigChange
impl Unpin for ConfigChange
impl UnwindSafe for ConfigChange
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