pub struct AddBranchV0 {
pub topic_id: TopicId,
pub branch_id: BranchId,
pub branch_type: BranchType,
pub branch_read_cap: ReadCap,
}
Expand description
Add a branch to the repository
DEPS: if update branch: previous AddBranch commit of the same branchId
Fields§
§topic_id: TopicId
the new topic_id (will be needed immediately by future readers in order to subscribe to the pub/sub). should be identical to the one in the Branch definition
branch_id: BranchId
§branch_type: BranchType
§branch_read_cap: ReadCap
Trait Implementations§
Source§impl Clone for AddBranchV0
impl Clone for AddBranchV0
Source§fn clone(&self) -> AddBranchV0
fn clone(&self) -> AddBranchV0
Returns a copy of the value. Read more
1.0.0 · 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 AddBranchV0
impl Debug for AddBranchV0
Source§impl<'de> Deserialize<'de> for AddBranchV0
impl<'de> Deserialize<'de> for AddBranchV0
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 AddBranchV0
impl PartialEq for AddBranchV0
Source§impl Serialize for AddBranchV0
impl Serialize for AddBranchV0
impl Eq for AddBranchV0
impl StructuralPartialEq for AddBranchV0
Auto Trait Implementations§
impl Freeze for AddBranchV0
impl RefUnwindSafe for AddBranchV0
impl Send for AddBranchV0
impl Sync for AddBranchV0
impl Unpin for AddBranchV0
impl UnwindSafe for AddBranchV0
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