pub struct ChangesetFile {
pub id: String,
pub edit: FileEdit,
pub reviewed: Option<bool>,
pub meta: Option<JsonObject>,
}Expand description
One file entry within a {@link ChangesetState}.
Fields§
§id: StringStable identifier within the changeset. Typically after.uri
(or before.uri for deletions).
edit: FileEditReuses the existing {@link FileEdit} shape. Clients derive line additions, deletions, and rename/create/delete semantics from this.
reviewed: Option<bool>Whether a reviewer has marked this file as reviewed (the GitHub-style
“Viewed” checkbox). Absent is equivalent to false — clients MUST treat
a missing value as not-yet-reviewed.
Requires the changeset to advertise {@link ChangesetCapabilities.review}.
Clients toggle it by dispatching
{@link ChangesetFilesReviewChangedAction | changeset/filesReviewChanged};
the server MAY also originate it (e.g. an agent self-reviewing its own
output).
There is no content version in the protocol, so review is not reset
automatically when a file’s contents change under a stable id. The server,
which is the authority on what changed, resets review explicitly — either
by re-emitting the file (via {@link ChangesetFileSetAction} or
{@link ChangesetContentChangedAction}) without reviewed: true, or by
dispatching changeset/filesReviewChanged with reviewed: false.
meta: Option<JsonObject>Server-defined opaque metadata, surfaced to operations and tooling but not interpreted by the protocol.
Trait Implementations§
Source§impl Clone for ChangesetFile
impl Clone for ChangesetFile
Source§fn clone(&self) -> ChangesetFile
fn clone(&self) -> ChangesetFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more