pub struct Manifest { /* private fields */ }Expand description
§BucketData
BucketData is the serializable metadata for a bucket. It stores:
- an identifier for the bucket (global and static)
- a friendly name for the bucket (for display)
- shares (access control and encryption keys for principals)
- pins (optional pin set)
- previous version link
- version info
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn new(
id: Uuid,
name: String,
owner: PublicKey,
share: Share,
entry: Link,
pins: Link,
) -> Self
pub fn new( id: Uuid, name: String, owner: PublicKey, share: Share, entry: Link, pins: Link, ) -> Self
Create a new bucket with a name, owner, and share, and entry node link
pub fn id(&self) -> &Uuid
pub fn name(&self) -> &str
pub fn version(&self) -> &Version
pub fn entry(&self) -> &Link
pub fn set_entry(&mut self, entry: Link)
pub fn pins(&self) -> &Link
pub fn set_pins(&mut self, pins_link: Link)
pub fn set_previous(&mut self, previous: Link)
pub fn previous(&self) -> &Option<Link>
Trait Implementations§
Source§impl BlockEncoded<DagCborCodec> for Manifest
impl BlockEncoded<DagCborCodec> for Manifest
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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