#[non_exhaustive]pub struct ResourceInfo {
pub resource_type: String,
pub resource_name: String,
pub owner: String,
pub description: String,
}Expand description
Describes the resource that is being accessed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource_type: StringA name for the type of resource being accessed, e.g. “sql table”, “cloud storage bucket”, “file”, “Google calendar”; or the type URL of the resource: e.g. “type.googleapis.com/google.pubsub.v1.Topic”.
resource_name: StringThe name of the resource being accessed. For example, a shared calendar name: “example.com_4fghdhgsrgh@group.calendar.google.com”, if the current error is google.rpc.Code.PERMISSION_DENIED.
owner: StringThe owner of the resource (optional). For example, “user:<owner email>” or “project:<Google developer project id>”.
description: StringDescribes what error is encountered when accessing this resource.
For example, updating a cloud project may require the writer permission
on the developer console project.
Implementations§
Source§impl ResourceInfo
impl ResourceInfo
Sourcepub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_type.
Sourcepub fn set_resource_name<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_name<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
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 more