Struct git_repository::ObjectDetached
source · Expand description
A detached, self-contained object, without access to its source repository.
Use it if an ObjectRef
should be sent over thread boundaries or stored in collections.
Fields§
§id: ObjectId
The id of the object
kind: Kind
The kind of the object
data: Vec<u8>
The fully decoded object data
Implementations§
source§impl ObjectDetached
impl ObjectDetached
sourcepub fn attach(self, repo: &Repository) -> Object<'_>
pub fn attach(self, repo: &Repository) -> Object<'_>
Infuse this owned object with repo
access.
Trait Implementations§
source§impl AsRef<[u8]> for ObjectDetached
impl AsRef<[u8]> for ObjectDetached
source§impl Clone for ObjectDetached
impl Clone for ObjectDetached
source§fn clone(&self) -> ObjectDetached
fn clone(&self) -> ObjectDetached
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ObjectDetached
impl Debug for ObjectDetached
source§impl<'repo> From<Commit<'repo>> for ObjectDetached
impl<'repo> From<Commit<'repo>> for ObjectDetached
source§impl<'repo> From<Object<'repo>> for ObjectDetached
impl<'repo> From<Object<'repo>> for ObjectDetached
source§impl<'repo> From<Tag<'repo>> for ObjectDetached
impl<'repo> From<Tag<'repo>> for ObjectDetached
source§impl<'repo> PartialEq<ObjectDetached> for Id<'repo>
impl<'repo> PartialEq<ObjectDetached> for Id<'repo>
source§fn eq(&self, other: &ObjectDetached) -> bool
fn eq(&self, other: &ObjectDetached) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl RefUnwindSafe for ObjectDetached
impl Send for ObjectDetached
impl Sync for ObjectDetached
impl Unpin for ObjectDetached
impl UnwindSafe for ObjectDetached
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)