MCPcopy Create free account
hub / github.com/cosdata/cosdata / new_explicit

Method new_explicit

src/models/versioning.rs:80–96  ·  view source on GitHub ↗
(
        version: VersionNumber,
        transaction_id: ExplicitTransactionID,
        created_at: DateTime<Utc>,
        records_upserted: u32,
        records_deleted: u32,
        total_operation

Source from the content-addressed store, hash-verified

78 }
79
80 pub fn new_explicit(
81 version: VersionNumber,
82 transaction_id: ExplicitTransactionID,
83 created_at: DateTime<Utc>,
84 records_upserted: u32,
85 records_deleted: u32,
86 total_operations: u32,
87 ) -> Self {
88 Self {
89 version,
90 source: VersionSource::Explicit { transaction_id },
91 created_at,
92 records_upserted,
93 records_deleted,
94 total_operations,
95 }
96 }
97
98 fn serialize(&self) -> Vec<u8> {
99 let mut result = Vec::with_capacity(29);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected