pub struct RepositoryV0 {
pub id: RepoId,
pub verification_program: Vec<u8>,
pub fork_of: Vec<u8>,
pub creator: Option<UserId>,
pub metadata: Vec<u8>,
}
Expand description
Repository definition
First commit published in root branch, signed by repository key For the Root repo of a store(overlay), the convergence_key should be derived from : “NextGraph Data BLAKE3 key”, RepoId + RepoWriteCapSecret) for a private store root repo, the RepoWriteCapSecret can be omitted
Fields§
§id: RepoId
Repo public key ID
verification_program: Vec<u8>
Verification program (WASM)
fork_of: Vec<u8>
Optional serialization of a ReadBranchLink (of a rootbranch or a transactional branch), if the repository is a fork of another one. then transaction branches of this new repo, will be able to reference the forked repo/branches commits as DEPS in their singleton Branch commit.
creator: Option<UserId>
User ID who created this repo
metadata: Vec<u8>
Immutable App-specific metadata
Implementations§
Source§impl RepositoryV0
impl RepositoryV0
pub fn new_with_meta(id: &PubKey, metadata: &Vec<u8>) -> RepositoryV0
Trait Implementations§
Source§impl Clone for RepositoryV0
impl Clone for RepositoryV0
Source§fn clone(&self) -> RepositoryV0
fn clone(&self) -> RepositoryV0
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepositoryV0
impl Debug for RepositoryV0
Source§impl<'de> Deserialize<'de> for RepositoryV0
impl<'de> Deserialize<'de> for RepositoryV0
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 for RepositoryV0
impl PartialEq for RepositoryV0
Source§impl Serialize for RepositoryV0
impl Serialize for RepositoryV0
impl Eq for RepositoryV0
impl StructuralPartialEq for RepositoryV0
Auto Trait Implementations§
impl Freeze for RepositoryV0
impl RefUnwindSafe for RepositoryV0
impl Send for RepositoryV0
impl Sync for RepositoryV0
impl Unpin for RepositoryV0
impl UnwindSafe for RepositoryV0
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