pub struct AddBranchV0 {
pub topic_id: Option<TopicId>,
pub branch_read_cap: Option<ReadCap>,
pub crdt: BranchCrdt,
pub branch_id: BranchId,
pub branch_type: BranchType,
pub fork_of: Option<BranchId>,
pub merged_in: Option<BranchId>,
}
Expand description
Add a branch to the repository
DEPS: if update branch: previous AddBranch commit of the same branchId
Fields§
§topic_id: Option<TopicId>
§branch_read_cap: Option<ReadCap>
§crdt: BranchCrdt
§branch_id: BranchId
§branch_type: BranchType
§fork_of: Option<BranchId>
§merged_in: Option<BranchId>
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