Struct googapis::google::cloud::asset::v1::VersionedResource [−][src]
Expand description
Resource representation as defined by the corresponding service providing the resource for a given API version.
Fields
version: String
API version of the resource.
Example:
If the resource is an instance provided by Compute Engine v1 API as defined
in <https://cloud.google.com/compute/docs/reference/rest/v1/instances
,>
version will be “v1”.
resource: Option<Struct>
JSON representation of the resource as defined by the corresponding service providing this resource.
Example:
If the resource is an instance provided by Compute Engine, this field will
contain the JSON representation of the instance as defined by Compute
Engine:
<https://cloud.google.com/compute/docs/reference/rest/v1/instances
.>
You can find the resource definition for each supported resource type in
this table:
<https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types
>
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for VersionedResource
impl Send for VersionedResource
impl Sync for VersionedResource
impl Unpin for VersionedResource
impl UnwindSafe for VersionedResource
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more