Struct google_api_proto::grafeas::v1::PackageNote
source · pub struct PackageNote {
pub name: String,
pub distribution: Vec<Distribution>,
pub package_type: String,
pub cpe_uri: String,
pub architecture: i32,
pub version: Option<Version>,
pub maintainer: String,
pub url: String,
pub description: String,
pub license: Option<License>,
pub digest: Vec<Digest>,
}
Expand description
PackageNote represents a particular package version.
Fields§
§name: String
The name of the package.
distribution: Vec<Distribution>
Deprecated. The various channels by which a package is distributed.
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.
version: Option<Version>
The version of the package.
maintainer: String
A freeform text denoting the maintainer of this package.
url: String
The homepage for this package.
description: String
The description of this package.
license: Option<License>
Licenses that have been declared by the authors of the package.
digest: Vec<Digest>
Hash value, typically a file digest, that allows unique identification a specific package.
Implementations§
source§impl PackageNote
impl PackageNote
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 PackageNote
impl Clone for PackageNote
source§fn clone(&self) -> PackageNote
fn clone(&self) -> PackageNote
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageNote
impl Debug for PackageNote
source§impl Default for PackageNote
impl Default for PackageNote
source§impl Message for PackageNote
impl Message for PackageNote
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 PackageNote
impl PartialEq for PackageNote
source§fn eq(&self, other: &PackageNote) -> bool
fn eq(&self, other: &PackageNote) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PackageNote
Auto Trait Implementations§
impl Freeze for PackageNote
impl RefUnwindSafe for PackageNote
impl Send for PackageNote
impl Sync for PackageNote
impl Unpin for PackageNote
impl UnwindSafe for PackageNote
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