Struct google_api_proto::grafeas::v1::PackageOccurrence
source · pub struct PackageOccurrence {
pub name: String,
pub location: Vec<Location>,
pub package_type: String,
pub cpe_uri: String,
pub architecture: i32,
pub license: Option<License>,
pub version: Option<Version>,
}
Expand description
Details on how a particular software package was installed on a system.
Fields§
§name: String
The name of the installed package.
location: Vec<Location>
All of the places within the filesystem versions of this package have been found.
package_type: String
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
cpe_uri: String
The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
architecture: i32
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
license: Option<License>
Licenses that have been declared by the authors of the package.
version: Option<Version>
The version of the package.
Implementations§
source§impl PackageOccurrence
impl PackageOccurrence
sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Returns the enum value of architecture
, or the default if the field is set to an invalid enum value.
sourcepub fn set_architecture(&mut self, value: Architecture)
pub fn set_architecture(&mut self, value: Architecture)
Sets architecture
to the provided enum value.
Trait Implementations§
source§impl Clone for PackageOccurrence
impl Clone for PackageOccurrence
source§fn clone(&self) -> PackageOccurrence
fn clone(&self) -> PackageOccurrence
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageOccurrence
impl Debug for PackageOccurrence
source§impl Default for PackageOccurrence
impl Default for PackageOccurrence
source§impl Message for PackageOccurrence
impl Message for PackageOccurrence
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 PackageOccurrence
impl PartialEq for PackageOccurrence
source§fn eq(&self, other: &PackageOccurrence) -> bool
fn eq(&self, other: &PackageOccurrence) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PackageOccurrence
Auto Trait Implementations§
impl Freeze for PackageOccurrence
impl RefUnwindSafe for PackageOccurrence
impl Send for PackageOccurrence
impl Sync for PackageOccurrence
impl Unpin for PackageOccurrence
impl UnwindSafe for PackageOccurrence
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