pub struct VettedPackagesRef {
pub package_id: String,
pub package_name: String,
pub package_version: String,
}Expand description
A reference to identify one or more packages.
A reference matches a package if its package_id matches the package’s ID,
its package_name matches the package’s name, and its package_version
matches the package’s version. If an attribute in the reference is left
unspecified (i.e. as an empty string), that attribute is treated as a
wildcard. At a minimum, package_id or the package_name must be
specified.
If a reference does not match any package, the reference is considered unresolved and the entire update request is rejected.
Fields§
§package_id: StringPackage’s package id must be the same as this field.
Optional
package_name: StringPackage’s name must be the same as this field.
Optional
package_version: StringPackage’s version must be the same as this field.
Optional
Trait Implementations§
Source§impl Clone for VettedPackagesRef
impl Clone for VettedPackagesRef
Source§fn clone(&self) -> VettedPackagesRef
fn clone(&self) -> VettedPackagesRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VettedPackagesRef
impl Debug for VettedPackagesRef
Source§impl Default for VettedPackagesRef
impl Default for VettedPackagesRef
Source§fn default() -> VettedPackagesRef
fn default() -> VettedPackagesRef
Returns the “default value” for a type. Read more
impl Eq for VettedPackagesRef
Source§impl Hash for VettedPackagesRef
impl Hash for VettedPackagesRef
Source§impl Message for VettedPackagesRef
impl Message for VettedPackagesRef
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 VettedPackagesRef
impl PartialEq for VettedPackagesRef
impl StructuralPartialEq for VettedPackagesRef
Auto Trait Implementations§
impl Freeze for VettedPackagesRef
impl RefUnwindSafe for VettedPackagesRef
impl Send for VettedPackagesRef
impl Sync for VettedPackagesRef
impl Unpin for VettedPackagesRef
impl UnsafeUnpin for VettedPackagesRef
impl UnwindSafe for VettedPackagesRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> 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