Struct oro_common::CorgiPackument
source · pub struct CorgiPackument {
pub versions: HashMap<Version, CorgiVersionMetadata>,
pub tags: HashMap<String, Version>,
}Expand description
A serializable representation of a Packument – the toplevel metadata object containing information about package versions, dist-tags, etc.
This version is a reduced-size packument that only contains fields from “Corgi” packuments (or will only (de)serialize those specific fields).
Fields§
§versions: HashMap<Version, CorgiVersionMetadata>Trait Implementations§
source§impl Clone for CorgiPackument
impl Clone for CorgiPackument
source§fn clone(&self) -> CorgiPackument
fn clone(&self) -> CorgiPackument
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 CorgiPackument
impl Debug for CorgiPackument
source§impl Default for CorgiPackument
impl Default for CorgiPackument
source§fn default() -> CorgiPackument
fn default() -> CorgiPackument
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CorgiPackument
impl<'de> Deserialize<'de> for CorgiPackument
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<CorgiPackument> for Packument
impl From<CorgiPackument> for Packument
source§fn from(value: CorgiPackument) -> Self
fn from(value: CorgiPackument) -> Self
Converts to this type from the input type.
source§impl From<Packument> for CorgiPackument
impl From<Packument> for CorgiPackument
source§impl PartialEq<CorgiPackument> for CorgiPackument
impl PartialEq<CorgiPackument> for CorgiPackument
source§fn eq(&self, other: &CorgiPackument) -> bool
fn eq(&self, other: &CorgiPackument) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CorgiPackument
impl Serialize for CorgiPackument
impl Eq for CorgiPackument
impl StructuralEq for CorgiPackument
impl StructuralPartialEq for CorgiPackument
Auto Trait Implementations§
impl RefUnwindSafe for CorgiPackument
impl Send for CorgiPackument
impl Sync for CorgiPackument
impl Unpin for CorgiPackument
impl UnwindSafe for CorgiPackument
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.