pub enum RootBranch {
V0(RootBranchV0),
}
Expand description
RootBranch definition
Variants§
V0(RootBranchV0)
Implementations§
Source§impl RootBranch
impl RootBranch
pub fn topic(&self) -> &TopicId
pub fn repo_id(&self) -> &RepoId
pub fn owners(&self) -> &Vec<UserId> ⓘ
pub fn encrypt_write_cap( for_user: &UserId, write_cap: &RepoWriteCapSecret, ) -> Result<Vec<u8>, NgError>
pub fn decrypt_write_cap( by_user: &PrivKey, cipher: &Vec<u8>, ) -> Result<RepoWriteCapSecret, NgError>
Trait Implementations§
Source§impl Clone for RootBranch
impl Clone for RootBranch
Source§fn clone(&self) -> RootBranch
fn clone(&self) -> RootBranch
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 RootBranch
impl Debug for RootBranch
Source§impl<'de> Deserialize<'de> for RootBranch
impl<'de> Deserialize<'de> for RootBranch
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 Display for RootBranch
impl Display for RootBranch
Source§impl PartialEq for RootBranch
impl PartialEq for RootBranch
Source§impl Serialize for RootBranch
impl Serialize for RootBranch
impl Eq for RootBranch
impl StructuralPartialEq for RootBranch
Auto Trait Implementations§
impl Freeze for RootBranch
impl RefUnwindSafe for RootBranch
impl Send for RootBranch
impl Sync for RootBranch
impl Unpin for RootBranch
impl UnwindSafe for RootBranch
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