pub struct CellCreate {
pub id: CellId,
pub parent: DirId,
pub name: NamespaceName,
pub kind: NodeKind,
pub source: Option<SourceRecord>,
pub policy_patch: CodecPolicyPatch,
}Expand description
Request record for creating an immutable durable cell.
Fields§
§id: CellIdStable cell id.
parent: DirIdReserved parent directory.
name: NamespaceNameReserved child name.
kind: NodeKindCell node family.
source: Option<SourceRecord>Optional source provenance.
policy_patch: CodecPolicyPatchLocal policy patch.
Implementations§
Source§impl CellCreate
impl CellCreate
Sourcepub fn new(
id: CellId,
parent: DirId,
name: NamespaceName,
kind: NodeKind,
) -> Self
pub fn new( id: CellId, parent: DirId, name: NamespaceName, kind: NodeKind, ) -> Self
Create a request with no source provenance and no local policy patch.
Sourcepub fn with_source(self, source: SourceRecord) -> Self
pub fn with_source(self, source: SourceRecord) -> Self
Attach source provenance.
Sourcepub fn with_policy_patch(self, policy_patch: CodecPolicyPatch) -> Self
pub fn with_policy_patch(self, policy_patch: CodecPolicyPatch) -> Self
Attach a local policy patch.
Trait Implementations§
Source§impl Clone for CellCreate
impl Clone for CellCreate
Source§fn clone(&self) -> CellCreate
fn clone(&self) -> CellCreate
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 CellCreate
impl Debug for CellCreate
impl Eq for CellCreate
Source§impl PartialEq for CellCreate
impl PartialEq for CellCreate
impl StructuralPartialEq for CellCreate
Auto Trait Implementations§
impl Freeze for CellCreate
impl RefUnwindSafe for CellCreate
impl Send for CellCreate
impl Sync for CellCreate
impl Unpin for CellCreate
impl UnsafeUnpin for CellCreate
impl UnwindSafe for CellCreate
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