Enum iroh_blobs::store::ExportFormat
source · pub enum ExportFormat {
Blob,
Collection,
}
Expand description
The expected format of a hash being exported.
Variants§
Blob
The hash refers to any blob and will be exported to a single file.
Collection
The hash refers to a crate::format::collection::Collection
blob
and all children of the collection shall be exported to one file per child.
If the blob can be parsed as a BlobFormat::HashSeq
, and the first child contains
collection metadata, all other children of the collection will be exported to
a file each, with their collection name treated as a relative path to the export
destination path.
If the blob cannot be parsed as a collection, the operation will fail.
Trait Implementations§
source§impl Clone for ExportFormat
impl Clone for ExportFormat
source§fn clone(&self) -> ExportFormat
fn clone(&self) -> ExportFormat
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 ExportFormat
impl Debug for ExportFormat
source§impl Default for ExportFormat
impl Default for ExportFormat
source§fn default() -> ExportFormat
fn default() -> ExportFormat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExportFormat
impl<'de> Deserialize<'de> for ExportFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExportFormat
impl RefUnwindSafe for ExportFormat
impl Send for ExportFormat
impl Sync for ExportFormat
impl Unpin for ExportFormat
impl UnwindSafe for ExportFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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