pub struct ResourceInfo {
pub container: Option<String>,
pub location: Option<String>,
pub name: Option<String>,
pub permission: Option<String>,
pub type_: Option<String>,
}
Expand description
Describes a resource referenced in the request.
This type is not used in any activity, and only used as part of another schema.
Fields§
§container: Option<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/
- folders/
- organizations/
Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
location: Option<String>
Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: “europe-west4”, “northamerica-northeast1-a”. Required for location policy check.
name: Option<String>
The name of the resource referenced in the request.
permission: Option<String>
The resource permission needed for this request. The format must be “{service}/{plural}.{verb}”.
type_: Option<String>
The resource type in the format of “{service}/{kind}”.
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§fn default() -> ResourceInfo
fn default() -> ResourceInfo
Source§impl<'de> Deserialize<'de> for ResourceInfo
impl<'de> Deserialize<'de> for ResourceInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ResourceInfo
impl Serialize for ResourceInfo
impl Part 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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more