namespace AIStudio.Tools.DocumentSegments; /// /// How a format wrote the new document. /// /// Whether the new document is written. /// How many segments got their new text with all of their inline structure. /// How many segments got their new text without parts of their inline structure, because the tags of the model did not fit. public readonly record struct SegmentWriteResult(SegmentWriteOutcome Outcome, int ExactCount, int SimplifiedCount) { /// /// The result when the source changed since it was read, and nothing is written. /// public static readonly SegmentWriteResult SOURCE_CHANGED = new(SegmentWriteOutcome.SOURCE_CHANGED, 0, 0); }