pub struct ResolvedObject {
pub oid: ObjectId,
pub kind: ObjectKind,
pub size: u64,
pub ref_name: Option<String>,
pub full_ref: Option<String>,
}Expand description
Result of resolving one revision spec to a concrete object.
Fields§
§oid: ObjectIdResolved object id (after peel suffixes in the spec).
kind: ObjectKindKind of the resolved object.
size: u64Uncompressed object payload size in bytes.
ref_name: Option<String>Short ref name when the spec named a ref directly (for example main, v1.0).
full_ref: Option<String>Full ref name when the spec named a ref directly (for example refs/heads/main).
Trait Implementations§
Source§impl Clone for ResolvedObject
impl Clone for ResolvedObject
Source§impl Debug for ResolvedObject
impl Debug for ResolvedObject
impl Eq for ResolvedObject
Source§impl PartialEq for ResolvedObject
impl PartialEq for ResolvedObject
impl StructuralPartialEq for ResolvedObject
Auto Trait Implementations§
impl Freeze for ResolvedObject
impl RefUnwindSafe for ResolvedObject
impl Send for ResolvedObject
impl Sync for ResolvedObject
impl Unpin for ResolvedObject
impl UnsafeUnpin for ResolvedObject
impl UnwindSafe for ResolvedObject
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