Struct google_api_proto::google::cloud::securitycenter::v1::ValuedResource
source · pub struct ValuedResource {
pub name: String,
pub resource: String,
pub resource_type: String,
pub display_name: String,
pub resource_value: i32,
pub exposed_score: f64,
pub resource_value_configs_used: Vec<ResourceValueConfigMetadata>,
}
Expand description
A resource that is determined to have value to a user’s system
Fields§
§name: String
Valued resource name, for example,
e.g.:
organizations/123/simulations/456/valuedResources/789
resource: String
The full resource name of the valued resource.
resource_type: String
The resource type of the valued resource.
display_name: String
Human-readable name of the valued resource.
resource_value: i32
How valuable this resource is.
exposed_score: f64
Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.
resource_value_configs_used: Vec<ResourceValueConfigMetadata>
List of resource value configurations’ metadata used to determine the value of this resource. Maximum of 100.
Implementations§
source§impl ValuedResource
impl ValuedResource
sourcepub fn resource_value(&self) -> ResourceValue
pub fn resource_value(&self) -> ResourceValue
Returns the enum value of resource_value
, or the default if the field is set to an invalid enum value.
sourcepub fn set_resource_value(&mut self, value: ResourceValue)
pub fn set_resource_value(&mut self, value: ResourceValue)
Sets resource_value
to the provided enum value.
Trait Implementations§
source§impl Clone for ValuedResource
impl Clone for ValuedResource
source§fn clone(&self) -> ValuedResource
fn clone(&self) -> ValuedResource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValuedResource
impl Debug for ValuedResource
source§impl Default for ValuedResource
impl Default for ValuedResource
source§impl Message for ValuedResource
impl Message for ValuedResource
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for ValuedResource
impl PartialEq for ValuedResource
source§fn eq(&self, other: &ValuedResource) -> bool
fn eq(&self, other: &ValuedResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ValuedResource
Auto Trait Implementations§
impl Freeze for ValuedResource
impl RefUnwindSafe for ValuedResource
impl Send for ValuedResource
impl Sync for ValuedResource
impl Unpin for ValuedResource
impl UnwindSafe for ValuedResource
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request