pub struct CollectionEntry {
pub path: String,
pub data: Vec<u8>,
}Expand description
One entry of an in-memory collection: a tar path plus its raw bytes.
Mirrors bee-go’s CollectionEntry and bee-js’s Collection items.
Fields§
§path: StringRelative path inside the collection (e.g. "index.html" or
"assets/logo.png").
data: Vec<u8>File contents.
Implementations§
Trait Implementations§
Source§impl Clone for CollectionEntry
impl Clone for CollectionEntry
Source§fn clone(&self) -> CollectionEntry
fn clone(&self) -> CollectionEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CollectionEntry
impl Debug for CollectionEntry
Source§impl PartialEq for CollectionEntry
impl PartialEq for CollectionEntry
Source§fn eq(&self, other: &CollectionEntry) -> bool
fn eq(&self, other: &CollectionEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CollectionEntry
impl StructuralPartialEq for CollectionEntry
Auto Trait Implementations§
impl Freeze for CollectionEntry
impl RefUnwindSafe for CollectionEntry
impl Send for CollectionEntry
impl Sync for CollectionEntry
impl Unpin for CollectionEntry
impl UnsafeUnpin for CollectionEntry
impl UnwindSafe for CollectionEntry
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