[][src]Struct bindle::Parcel

pub struct Parcel {
    pub label: Label,
    pub conditions: Option<Condition>,
}

A description of a stored parcel file

A parcel file can be an arbitrary "blob" of data. This could be binary or text files. This object contains the metadata and associated conditions for using a parcel. For more information, see the Bindle Spec

Fields

label: Labelconditions: Option<Condition>

Implementations

impl Parcel[src]

pub fn member_of(&self, group: &str) -> bool[src]

pub fn is_global_group(&self) -> bool[src]

returns true if this parcel is a member of the "global" group (default).

The spec says: "An implicit global group exists. It has no name, and includes only the parcels that are not assigned to any other group." Therefore, if this returns true, it is a member of the "global" group.

Trait Implementations

impl Clone for Parcel[src]

impl Debug for Parcel[src]

impl<'de> Deserialize<'de> for Parcel[src]

impl Eq for Parcel[src]

impl Hash for Parcel[src]

impl PartialEq<Parcel> for Parcel[src]

impl Serialize for Parcel[src]

impl StructuralEq for Parcel[src]

impl StructuralPartialEq for Parcel[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> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,