pub struct CollabPayload {
pub content: Option<HashMap<String, String>>,
pub source: Option<String>,
pub updates: Option<HashMap<String, String>>,
}Fields§
§content: Option<HashMap<String, String>>Content maps a document field to its ProseMirror markup JSON.
source: Option<String>Source is the blob ref a getContent reads the snapshot from. Absent means there is no snapshot to read, which answers empty content.
updates: Option<HashMap<String, String>>Updates carries, per field, a base64 Y.js state update encoding the SAME markup — the front computes it (markupToYDoc → encodeStateAsUpdate) so a createContent seeds the live-editing lane’s update log, not just the snapshot blob. Without it a dialog-created description is invisible in the collaborative editor, which replays the ydoc log, never the snapshot.
Implementations§
Source§impl CollabPayload
impl CollabPayload
pub fn new() -> CollabPayload
Trait Implementations§
Source§impl Clone for CollabPayload
impl Clone for CollabPayload
Source§fn clone(&self) -> CollabPayload
fn clone(&self) -> CollabPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CollabPayload
impl Debug for CollabPayload
Source§impl Default for CollabPayload
impl Default for CollabPayload
Source§fn default() -> CollabPayload
fn default() -> CollabPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollabPayload
impl<'de> Deserialize<'de> for CollabPayload
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 PartialEq for CollabPayload
impl PartialEq for CollabPayload
Source§impl Serialize for CollabPayload
impl Serialize for CollabPayload
impl StructuralPartialEq for CollabPayload
Auto Trait Implementations§
impl Freeze for CollabPayload
impl RefUnwindSafe for CollabPayload
impl Send for CollabPayload
impl Sync for CollabPayload
impl Unpin for CollabPayload
impl UnsafeUnpin for CollabPayload
impl UnwindSafe for CollabPayload
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