[][src]Struct ostree::ObjectName

pub struct ObjectName { /* fields omitted */ }

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

impl ObjectName[src]

pub fn new_from_variant(variant: Variant) -> ObjectName[src]

Create a new ObjectName from a serialized representation.

pub fn new<S: Into<GString>>(checksum: S, object_type: ObjectType) -> ObjectName[src]

Create a new ObjectName with the given checksum and ObjectType.

pub fn checksum(&self) -> &str[src]

Return a reference to this ObjectName's checksum string.

pub fn object_type(&self) -> ObjectType[src]

Return this ObjectName's ObjectType.

Trait Implementations

impl Debug for ObjectName[src]

impl Display for ObjectName[src]

impl Eq for ObjectName[src]

impl Hash for ObjectName[src]

impl PartialEq<ObjectName> for ObjectName[src]

impl StructuralEq for ObjectName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.