pub enum CommitBody {
V0(CommitBodyV0),
}
Expand description
Commit body
Variants§
V0(CommitBodyV0)
Implementations§
Source§impl CommitBody
impl CommitBody
pub fn get_type(&self) -> CommitType
pub fn get_signature_reference(&self) -> Option<ObjectRef>
Source§impl CommitBody
impl CommitBody
pub fn save( self, block_size: usize, store: &Store, ) -> Result<(ObjectRef, Vec<BlockId>), StorageError>
pub fn is_add_signer_cap(&self) -> bool
pub fn root_branch_commit(&self) -> Result<&RootBranch, CommitLoadError>
pub fn is_repository_singleton_commit(&self) -> bool
pub fn must_be_root_commit_in_branch(&self) -> bool
pub fn on_root_branch(&self) -> bool
pub fn on_transactional_branch(&self) -> bool
pub fn on_store_branch(&self) -> bool
pub fn on_user_branch(&self) -> bool
pub fn not_allowed_on_individual_private_site(&self) -> bool
pub fn total_order_required(&self) -> bool
pub fn required_permission(&self) -> HashSet<PermissionV0>
Trait Implementations§
Source§impl Clone for CommitBody
impl Clone for CommitBody
Source§fn clone(&self) -> CommitBody
fn clone(&self) -> CommitBody
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 CommitBody
impl Debug for CommitBody
Source§impl<'de> Deserialize<'de> for CommitBody
impl<'de> Deserialize<'de> for CommitBody
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 CommitBody
impl Display for CommitBody
Source§impl PartialEq for CommitBody
impl PartialEq for CommitBody
Source§impl Serialize for CommitBody
impl Serialize for CommitBody
impl Eq for CommitBody
impl StructuralPartialEq for CommitBody
Auto Trait Implementations§
impl Freeze for CommitBody
impl RefUnwindSafe for CommitBody
impl Send for CommitBody
impl Sync for CommitBody
impl Unpin for CommitBody
impl UnwindSafe for CommitBody
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