pub struct ObjectSourceMeta {
pub identifier: ContentID,
pub name: Rc<str>,
pub srcid: Rc<str>,
pub change_time_offset: u32,
pub change_frequency: u32,
}Expand description
Metadata about a component/package.
Fields§
§identifier: ContentIDUnique identifier, does not need to be human readable, but can be.
name: Rc<str>Just the name of the package (no version), needs to be human readable.
srcid: Rc<str>Identifier for the source of this content; for example, if multiple binary packages derive from a single git repository or source package.
change_time_offset: u32Unitless, relative offset of last change time. One suggested way to generate this number is to have it be in units of hours or days since the earliest changed item.
change_frequency: u32Change frequency
Trait Implementations§
Source§impl Borrow<str> for ObjectSourceMeta
impl Borrow<str> for ObjectSourceMeta
Source§impl Debug for ObjectSourceMeta
impl Debug for ObjectSourceMeta
Source§impl<'de> Deserialize<'de> for ObjectSourceMeta
impl<'de> Deserialize<'de> for ObjectSourceMeta
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 Hash for ObjectSourceMeta
impl Hash for ObjectSourceMeta
Source§impl PartialEq for ObjectSourceMeta
impl PartialEq for ObjectSourceMeta
Source§impl Serialize for ObjectSourceMeta
impl Serialize for ObjectSourceMeta
impl Eq for ObjectSourceMeta
Auto Trait Implementations§
impl Freeze for ObjectSourceMeta
impl RefUnwindSafe for ObjectSourceMeta
impl !Send for ObjectSourceMeta
impl !Sync for ObjectSourceMeta
impl Unpin for ObjectSourceMeta
impl UnwindSafe for ObjectSourceMeta
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<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.