pub struct EditGroupResult {
pub request_id: u32,
pub status: EditGroupStatus,
pub base_version: u32,
pub current_version: u32,
pub index: u32,
}Expand description
What became of one grouped edit, as the Renderer reported it.
Exactly one arrives for every grouped edit that was sent with at least one edit in it,
after the changes it made. The group went in whole or not at all: status is
Applied, or the reason it stayed out, and each reason asks for something different.
Rejected: the reader changed a place the group would have written, so read the
document again and send the group again. TooOld: the version it was written against
is older than the editor remembers, so bring the application’s copy of the document
back in step first. Invalid: the group itself makes no sense.
Fields§
§request_id: u32The id the application gave the group.
status: EditGroupStatus§base_version: u32The version the group was written against, as it was sent.
current_version: u32Where it went in, the version after its last change; where it did not, the version the document is at.
index: u32Where it went in, how many edits did; where it did not, the position in the group, as sent, of the edit that kept it out (0 where no one edit did).
Implementations§
Source§impl EditGroupResult
impl EditGroupResult
Sourcepub fn from_payload(payload: &EventPayload<'_>) -> Option<Self>
pub fn from_payload(payload: &EventPayload<'_>) -> Option<Self>
The result out of a CodeEditGroupResult event, or None for any other.