Struct noosphere_core::data::Bundle
source · pub struct Bundle(_);Implementations
sourceimpl 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 try_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
sourceimpl<'de> Deserialize<'de> for Bundle
impl<'de> Deserialize<'de> for Bundle
sourcefn 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
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
sourceimpl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
fn jwt_base64_encode(&self) -> Result<String, Error>
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more