pub struct RegistryPackage {
pub types: Vec<RegistryPackageType>,
}
Expand description
Configuration for registry package events
Fields§
§types: Vec<RegistryPackageType>
Filter on specific registry package event types
Implementations§
Source§impl RegistryPackage
impl RegistryPackage
Sourcepub fn types(
self,
value: impl Into<Vec<RegistryPackageType>>,
) -> RegistryPackage
pub fn types( self, value: impl Into<Vec<RegistryPackageType>>, ) -> RegistryPackage
Sets the types
field of this struct.
Source§impl RegistryPackage
impl RegistryPackage
Sourcepub fn add_type(self, type_: RegistryPackageType) -> RegistryPackage
pub fn add_type(self, type_: RegistryPackageType) -> RegistryPackage
Adds a registry package event type to filter on
Trait Implementations§
Source§impl Clone for RegistryPackage
impl Clone for RegistryPackage
Source§fn clone(&self) -> RegistryPackage
fn clone(&self) -> RegistryPackage
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 RegistryPackage
impl Debug for RegistryPackage
Source§impl Default for RegistryPackage
impl Default for RegistryPackage
Source§fn default() -> RegistryPackage
fn default() -> RegistryPackage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegistryPackage
impl<'de> Deserialize<'de> for RegistryPackage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegistryPackage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegistryPackage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RegistryPackage
impl PartialEq for RegistryPackage
Source§impl Serialize for RegistryPackage
impl Serialize for RegistryPackage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for RegistryPackage
impl StructuralPartialEq for RegistryPackage
Auto Trait Implementations§
impl Freeze for RegistryPackage
impl RefUnwindSafe for RegistryPackage
impl Send for RegistryPackage
impl Sync for RegistryPackage
impl Unpin for RegistryPackage
impl UnwindSafe for RegistryPackage
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.