MCPcopy Create free account
hub / github.com/AppFlowy-IO/AppFlowy-Collab / into_encode_collab

Method into_encode_collab

collab/src/database/database_trait.rs:36–41  ·  view source on GitHub ↗
(self, client_id: ClientID)

Source from the content-addressed store, hash-verified

34
35impl DatabaseRowDataVariant {
36 pub fn into_encode_collab(self, client_id: ClientID) -> EncodedCollab {
37 match self {
38 DatabaseRowDataVariant::Row(row) => default_database_row_from_row(row, client_id),
39 DatabaseRowDataVariant::EncodedCollab(encoded_collab) => encoded_collab,
40 }
41 }
42}
43
44pub type EncodeCollabByOid = HashMap<ObjectId, EncodedCollab>;

Callers 2

Calls 1

Tested by

no test coverage detected