mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: Import appflowy data (#4236)
* refactor: traits * feat: import data * chore: track database view * fix: import * refactor: collab doc state * refactor: get collab doc state * feat: batch create collab object * fix: test * ci: run docker compose if the server is not up * chore: bump collab * chore: update ci * chore: update ci * chore: update ci * chore: implement ui * chore: implement ui * chore: implement ui
This commit is contained in:
@ -26,6 +26,16 @@ impl<T> AFPluginData<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> AFPluginData<T>
|
||||
where
|
||||
T: validator::Validate,
|
||||
{
|
||||
pub fn try_into_inner(self) -> Result<T, ValidationErrors> {
|
||||
self.0.validate()?;
|
||||
Ok(self.0)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> ops::Deref for AFPluginData<T> {
|
||||
type Target = T;
|
||||
|
||||
|
Reference in New Issue
Block a user