Skip to main content
SnapshotMeta
coven_
protocol
1.0.0-rc.1
Snapshot
Meta
Aliased Type
Methods
parse_at
parse_stream_entry_at
semantic_hash_from_bytes
signed
snapshot_hash
In coven_
protocol::
store_
commit
coven_protocol
::
store_commit
Type Alias
Snapshot
Meta
Copy item path
Source
pub type SnapshotMeta =
Signed
<
SnapshotMetaBody
>;
Aliased Type
§
pub struct SnapshotMeta {
/* private fields */
}
Implementations
§
Source
§
impl
SnapshotMeta
Source
pub fn
signed
( store_root_hash:
ObjectHash
, author_registration:
StoreDeviceRegistrationRef
, generation:
u64
, predecessor:
Option
<
StoreSnapshotRef
>, image:
SnapshotImageRef
, membership_rollup:
MembershipRollupRef
, coverage:
CommitFrontier
, state:
StoreSnapshotState
, history_summary:
RetainedVerifiedMergeHistorySummary
, schema_version:
u32
, created_at:
String
, successor:
SnapshotSuccessorLink
, device_signer: &
UserKeypair
, ) ->
Result
<Self,
StoreProtocolError
>
Source
pub fn
snapshot_hash
(&self) ->
ObjectHash
Source
pub fn
semantic_hash_from_bytes
( bytes: &[
u8
], ) ->
Result
<
ObjectHash
,
StoreProtocolError
>
Source
pub fn
parse_at
( bytes: &[
u8
], expected_store_root_hash:
ObjectHash
, expected: &
StoreSnapshotRef
, author: &
StoreDeviceRegistration
, ) ->
Result
<Self,
StoreProtocolError
>
Source
pub fn
parse_stream_entry_at
( bytes: &[
u8
], expected_store_root: &
StoreRootRef
, expected_registration: &
StoreDeviceRegistrationRef
, author: &
StoreDeviceRegistration
, expected: &
StoreSnapshotRef
, ) ->
Result
<Self,
StoreProtocolError
>