Struct ostree_ext::objectsource::ObjectSourceMeta
source · 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<ObjectSourceMeta> for ObjectSourceMeta
impl PartialEq<ObjectSourceMeta> for ObjectSourceMeta
source§impl Serialize for ObjectSourceMeta
impl Serialize for ObjectSourceMeta
impl Eq for ObjectSourceMeta
impl StructuralEq for ObjectSourceMeta
Auto Trait Implementations§
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