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,
}Expand description
Metadata about a component/package.
Fields
identifier: ContentIDUnique identifier, does not need to be human readable, but can be.
name: Rc<str>Identifier for this source (e.g. package name-version, git repo).
Unlike the ContentID, this should 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.
Trait Implementations
sourceimpl Borrow<str> for ObjectSourceMeta
impl Borrow<str> for ObjectSourceMeta
sourceimpl Debug for ObjectSourceMeta
impl Debug for ObjectSourceMeta
sourceimpl<'de> Deserialize<'de> for ObjectSourceMeta
impl<'de> Deserialize<'de> for ObjectSourceMeta
sourcefn 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
sourceimpl Hash for ObjectSourceMeta
impl Hash for ObjectSourceMeta
sourceimpl PartialEq<ObjectSourceMeta> for ObjectSourceMeta
impl PartialEq<ObjectSourceMeta> for ObjectSourceMeta
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more