Struct noosphere_core::data::Bundle
source · pub struct Bundle(_);Implementations§
source§impl Bundle
impl Bundle
pub fn len(&self) -> usize
pub fn contains(&self, cid: &Cid) -> bool
pub async fn load_into<S: BlockStore>(&self, store: &mut S) -> Result<()>
pub async fn from_timeslice<'a, S: BlockStore>( timeslice: &Timeslice<'a, S>, store: &S ) -> Result<Bundle>
pub fn add(&mut self, cid: Cid, bytes: Vec<u8>) -> bool
pub fn merge(&mut self, other: Bundle)
pub fn map(&self) -> &BTreeMap<String, Vec<u8>>
pub async fn extend<CanBundle: TryBundle, S: BlockStore>( &mut self, cid: &Cid, store: &S ) -> Result<()>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Bundle
impl<'de> Deserialize<'de> for Bundle
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
source§impl PartialEq<Bundle> for Bundle
impl PartialEq<Bundle> for Bundle
impl Eq for Bundle
impl StructuralEq for Bundle
impl StructuralPartialEq for Bundle
Auto Trait Implementations§
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnwindSafe for Bundle
Blanket Implementations§
source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere T: DagJson,
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