Make Record.cols private (#12317)

# Description
Makes the `cols` field in `Record` private and fixes the implementation
of `rename` to account for this change.
This commit is contained in:
Ian Manske
2024-03-28 20:18:43 +00:00
committed by GitHub
parent e97368433b
commit 442faa5576
2 changed files with 73 additions and 65 deletions

View File

@ -6,11 +6,7 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct Record {
/// Don't use this field publicly!
///
/// Only public as command `rename` is not reimplemented in a sane way yet
/// Using it or making `vals` public will draw shaming by @sholderbach
pub cols: Vec<String>,
cols: Vec<String>,
vals: Vec<Value>,
}