Struct git_repository::easy::ObjectRef [−][src]
pub struct ObjectRef<'repo, A> {
pub id: ObjectId,
pub kind: Kind,
pub data: Ref<'repo, [u8]>,
// some fields omitted
}
Expand description
A decoded object with a reference to its owning repository.
Limitations
Note that it holds a reference to a buffer of it’s associated repository handle, so there can only be one at a time, per handle.
Fields
id: ObjectId
The id of the object
kind: Kind
The kind of the object
data: Ref<'repo, [u8]>
The fully decoded object data
Implementations
As to_commit_iter()
but panics if this is not a commit