pub struct ResourceIdentitySchema {
pub version: i64,
pub identity_attributes: Vec<IdentityAttribute>,
}Expand description
ResourceIdentitySchema represents the structure and types of data used to identify a managed resource type. Effectively, resource identity is a versioned object that can be used to compare resources, whether already managed and/or being discovered.
Fields§
§version: i64version is the identity version and separate from the Schema version. Any time the structure or format of identity_attributes changes, this version should be incremented. Versioning implicitly starts at 0 and by convention should be incremented by 1 each change.
When comparing identity_attributes data, differing versions should always be treated as inequal.
identity_attributes: Vec<IdentityAttribute>identity_attributes are the individual value definitions which define identity data for a managed resource type. This information is used to decode DynamicValue of identity data.
These attributes are intended for permanent identity data and must be wholly representative of all data necessary to compare two managed resource instances with no other data. This generally should include account, endpoint, location, and automatically generated identifiers. For some resources, this may include configuration-based data, such as a required name which must be unique.
Trait Implementations§
Source§impl Clone for ResourceIdentitySchema
impl Clone for ResourceIdentitySchema
Source§fn clone(&self) -> ResourceIdentitySchema
fn clone(&self) -> ResourceIdentitySchema
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceIdentitySchema
impl Debug for ResourceIdentitySchema
Source§impl Default for ResourceIdentitySchema
impl Default for ResourceIdentitySchema
Source§impl Message for ResourceIdentitySchema
impl Message for ResourceIdentitySchema
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 ResourceIdentitySchema
impl PartialEq for ResourceIdentitySchema
impl StructuralPartialEq for ResourceIdentitySchema
Auto Trait Implementations§
impl Freeze for ResourceIdentitySchema
impl RefUnwindSafe for ResourceIdentitySchema
impl Send for ResourceIdentitySchema
impl Sync for ResourceIdentitySchema
impl Unpin for ResourceIdentitySchema
impl UnsafeUnpin for ResourceIdentitySchema
impl UnwindSafe for ResourceIdentitySchema
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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