Common/LanguageFeature/DTO/PositionDTO.rs
1//! # PositionDTO
2//!
3//! Defines the Data Transfer Object for representing a zero-based line and
4//! column position in a text document.
5
6use serde::{Deserialize, Serialize};
7
8/// A serializable struct representing a position in a text document,
9
10/// consisting of a line number and a column number. This is a fundamental
11/// building block for many other DTOs.
12#[derive(Serialize, Deserialize, Debug, Clone, Copy)]
13#[serde(rename_all = "PascalCase")]
14pub struct PositionDTO {
15 /// The zero-based line number.
16 pub LineNumber:u32,
17
18 /// The zero-based column number.
19 pub Column:u32,
20}