Struct google_api_proto::google::cloud::asset::v1::RelatedAsset
source · pub struct RelatedAsset {
pub asset: String,
pub asset_type: String,
pub ancestors: Vec<String>,
pub relationship_type: String,
}
Expand description
An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy). See Supported asset types for more information.
Fields§
§asset: String
The full name of the asset. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource names for more information.
asset_type: String
The type of the asset. Example: compute.googleapis.com/Disk
See Supported asset types for more information.
ancestors: Vec<String>
The ancestors of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root.
Example: \["projects/123456789", "folders/5432", "organizations/1234"\]
relationship_type: String
The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
Trait Implementations§
source§impl Clone for RelatedAsset
impl Clone for RelatedAsset
source§fn clone(&self) -> RelatedAsset
fn clone(&self) -> RelatedAsset
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RelatedAsset
impl Debug for RelatedAsset
source§impl Default for RelatedAsset
impl Default for RelatedAsset
source§impl Message for RelatedAsset
impl Message for RelatedAsset
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 RelatedAsset
impl PartialEq for RelatedAsset
source§fn eq(&self, other: &RelatedAsset) -> bool
fn eq(&self, other: &RelatedAsset) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RelatedAsset
Auto Trait Implementations§
impl Freeze for RelatedAsset
impl RefUnwindSafe for RelatedAsset
impl Send for RelatedAsset
impl Sync for RelatedAsset
impl Unpin for RelatedAsset
impl UnwindSafe for RelatedAsset
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