Skip to main content

Module patch

Module patch 

Source
Expand description

Patch payload types.

Structs§

ChangePerm
Permission change payload.
CreateFile
Create file payload.
CreateSymlink
Symlink creation payload.
DeleteFile
Delete file payload.
EditText
Text edit payload using content-anchor identity.
Operation
A single operation inside a patch.
PatchPayload
Patch payload.
RenamePath
Rename path payload.
ReplaceBinary
Binary replacement payload.

Enums§

OperationKind
Operation variants.

Constants§

TEXT_SPAN_HASH_BYTES
Number of bytes in a content-anchored text span hash.

Functions§

text_span_hash
Compute the stable hash used by content-anchored text edit preconditions.
validate_text_anchor_id
Validate a stable content-anchor identifier.