Struct ostree::ObjectName
source · pub struct ObjectName { /* private fields */ }
Expand description
A reference to an object in an OSTree repo. It contains both a checksum and an ObjectType which together identify an object in a repository.
Implementations§
source§impl ObjectName
impl ObjectName
sourcepub fn new_from_variant(variant: Variant) -> ObjectName
pub fn new_from_variant(variant: Variant) -> ObjectName
Create a new ObjectName
from a serialized representation.
sourcepub fn new<S: Into<GString>>(checksum: S, object_type: ObjectType) -> ObjectName
pub fn new<S: Into<GString>>(checksum: S, object_type: ObjectType) -> ObjectName
Create a new ObjectName
with the given checksum and ObjectType
.
sourcepub fn object_type(&self) -> ObjectType
pub fn object_type(&self) -> ObjectType
Return this ObjectName
’s ObjectType
.
Trait Implementations§
source§impl Debug for ObjectName
impl Debug for ObjectName
source§impl Display for ObjectName
impl Display for ObjectName
source§impl Hash for ObjectName
impl Hash for ObjectName
source§impl PartialEq<ObjectName> for ObjectName
impl PartialEq<ObjectName> for ObjectName
source§fn eq(&self, other: &ObjectName) -> bool
fn eq(&self, other: &ObjectName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ObjectName
impl StructuralEq for ObjectName
Auto Trait Implementations§
impl RefUnwindSafe for ObjectName
impl Send for ObjectName
impl Sync for ObjectName
impl Unpin for ObjectName
impl UnwindSafe for ObjectName
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