Struct google_api_proto::google::api::servicecontrol::v2::ResourceInfo
source · pub struct ResourceInfo {
pub name: String,
pub type: String,
pub permission: String,
pub container: String,
pub location: String,
}
Expand description
Describes a resource referenced in the request.
Fields§
§name: String
The name of the resource referenced in the request.
type: String
The resource type in the format of “{service}/{kind}”.
permission: String
The resource permission needed for this request. The format must be “{service}/{plural}.{verb}”.
container: String
Optional. The identifier of the container of this resource. For Google
Cloud APIs, the resource container must be one of the following formats:
- projects/<project-id or project-number>
- folders/<folder-id>
- organizations/<organization-id>
For the policy enforcement on the container level (VPCSC and Location
Policy check), this field takes precedence on the container extracted from
name when presents.
location: String
Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: “europe-west4” or “northamerica-northeast1-a”
Trait Implementations§
source§impl Clone for ResourceInfo
impl Clone for ResourceInfo
source§fn clone(&self) -> ResourceInfo
fn clone(&self) -> ResourceInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceInfo
impl Debug for ResourceInfo
source§impl Default for ResourceInfo
impl Default for ResourceInfo
source§impl Message for ResourceInfo
impl Message for ResourceInfo
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 ResourceInfo
impl PartialEq for ResourceInfo
source§fn eq(&self, other: &ResourceInfo) -> bool
fn eq(&self, other: &ResourceInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceInfo
Auto Trait Implementations§
impl Freeze for ResourceInfo
impl RefUnwindSafe for ResourceInfo
impl Send for ResourceInfo
impl Sync for ResourceInfo
impl Unpin for ResourceInfo
impl UnwindSafe for ResourceInfo
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