pub enum FilesystemChange {
DirectoryCreated {
inode_id: InodeId,
parent_inode_id: InodeId,
display_name: DisplayName,
binding_generation: BindingGeneration,
},
FileCreated {
inode_id: InodeId,
parent_inode_id: InodeId,
display_name: DisplayName,
binding_generation: BindingGeneration,
revision_no: RevisionNo,
content_ref: ContentRef,
},
ContentChanged {
inode_id: InodeId,
revision_no: RevisionNo,
content_ref: ContentRef,
},
Moved {
inode_id: InodeId,
source_parent_inode_id: InodeId,
source_display_name: DisplayName,
destination_parent_inode_id: InodeId,
destination_display_name: DisplayName,
binding_generation: BindingGeneration,
},
Deleted {
inode_id: InodeId,
deleted_binding: DirectoryBinding,
},
Undeleted {
inode_id: InodeId,
parent_inode_id: InodeId,
display_name: DisplayName,
binding_generation: BindingGeneration,
},
AttributesChanged {
inode_id: InodeId,
attributes_revision_no: AttributeRevisionNo,
attributes: Attributes,
},
AccessChanged {
inode_id: InodeId,
access_revision_no: AccessRevisionNo,
boundary: bool,
grants: AccessGrants,
},
}Expand description
One filesystem change within a commit.
One request operation can produce multiple changes.
Variants§
DirectoryCreated
A directory was created.
Fields
display_name: DisplayNameUser-facing spelling of the new entry.
binding_generation: BindingGenerationOpaque identifier for the binding created by this event.
FileCreated
A file and its first revision were created.
Fields
display_name: DisplayNameUser-facing spelling of the new entry.
binding_generation: BindingGenerationOpaque identifier for the binding created by this event.
revision_no: RevisionNoFirst revision number.
content_ref: ContentRefContent of the first revision.
ContentChanged
A file received a new current revision from a put or revision restore.
Fields
revision_no: RevisionNoNew monotonic position in that file’s revision history.
content_ref: ContentRefImmutable content published by the revision.
Moved
An inode moved to a new parent directory or name.
Fields
source_display_name: DisplayNameSpelling of the removed binding.
destination_display_name: DisplayNameSpelling of the new binding.
binding_generation: BindingGenerationOpaque identifier for the binding created by this event.
Deleted
A file or directory subtree was deleted.
Fields
deleted_binding: DirectoryBindingDirectory binding removed by the deletion.
Undeleted
A deleted inode was recovered and re-bound.
Fields
display_name: DisplayNameSpelling of the recovered binding.
binding_generation: BindingGenerationOpaque identifier for the binding created by this event.
AttributesChanged
An inode’s attributes changed.
Fields
attributes_revision_no: AttributeRevisionNoNew attribute revision for that inode.
attributes: AttributesThe inode’s complete attribute map after the update, including an empty map when all attributes were cleared.
AccessChanged
An inode’s access row was replaced. grants is the complete
direct grant map after the update.
Fields
access_revision_no: AccessRevisionNoRevision published by the update.
grants: AccessGrantsThe inode’s complete direct grants after this update.